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;