From 9daaba25437d0ddd802c28e00f3339ed6b5fc4ec Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 27 Sep 2020 15:44:16 +0200 Subject: [PATCH] Window: buttonClick(): Correct parameter name --- window.cpp | 4 ++-- window.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/window.cpp b/window.cpp index 7f32440..84f3187 100644 --- a/window.cpp +++ b/window.cpp @@ -118,9 +118,9 @@ void Window::populateGrid(const QVector &list) } } -void Window::buttonClick(const EntryPushButton &config) +void Window::buttonClick(const EntryPushButton &button) { - QProcess::startDetached(config.getCommand(), config.getArguments()); + QProcess::startDetached(button.getCommand(), button.getArguments()); this->closeWindow(); } diff --git a/window.h b/window.h index 95964a1..ac955c5 100644 --- a/window.h +++ b/window.h @@ -63,7 +63,7 @@ class Window : public QWidget void keyReleaseEvent(QKeyEvent *event); QVector generateEntryButtons(const QVector &userEntryButtons); void keyPressEvent(QKeyEvent *event); - void buttonClick(const EntryPushButton &config); + void buttonClick(const EntryPushButton &button); void addToFavourites(const EntryPushButton &button); QLineEdit *lineEdit; QGridLayout *grid;