Skip to content

Commit

Permalink
Use QAction::triggered because QAction::activated is from Qt3
Browse files Browse the repository at this point in the history
and it stopped working in Qt5
  • Loading branch information
mvidner committed Nov 14, 2013
1 parent 2a17826 commit 824e494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ MainWindow::MainWindow( Qt::WindowFlags wflags )
connect( d->searchField, SIGNAL( textChanged( const QString &)),
SLOT( slotFilterChanged() ));

connect( shutdown, SIGNAL( activated()), qApp, SLOT( quit()));
connect( shutdown, SIGNAL( triggered()), qApp, SLOT( quit()));

connect( saveLogs, SIGNAL( activated()), logSaver, SLOT( save() ));
connect( saveLogs, SIGNAL( triggered()), logSaver, SLOT( save() ));

connect( logSaver, SIGNAL( statusMsg( const QString &)), statusBar(),
SLOT( showMessage( const QString &) ));
Expand Down

0 comments on commit 824e494

Please sign in to comment.