diff options
author | Simon Rettberg | 2019-06-05 14:05:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-05 14:05:02 +0200 |
commit | 4a7857f9f66cc471defe22549c7af813f844b6fc (patch) | |
tree | d25958c7298cbcd15cd99441e1d3fbaa00dd215d /src/xsession.cpp | |
parent | Remember whether help/news was open (diff) | |
download | vmchooser2-4a7857f9f66cc471defe22549c7af813f844b6fc.tar.gz vmchooser2-4a7857f9f66cc471defe22549c7af813f844b6fc.tar.xz vmchooser2-4a7857f9f66cc471defe22549c7af813f844b6fc.zip |
Use Qt5 style signal/slot connections
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r-- | src/xsession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp index 2d7214a..8e26b86 100644 --- a/src/xsession.cpp +++ b/src/xsession.cpp @@ -149,7 +149,7 @@ QIcon XSession::icon() const { bool XSession::run() const { _process->start(this->exec_); - QObject::connect(_process, SIGNAL(finished(int, QProcess::ExitStatus)), QApplication::instance(), SLOT(quit())); + QObject::connect(_process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), QApplication::instance(), &QCoreApplication::quit); if (_process->state() == QProcess::Starting || _process->state() == QProcess::Running) return true; else |