Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
kdenetwork4
r881947-krdc-logout.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File r881947-krdc-logout.diff of Package kdenetwork4
Index: krdc/mainwindow.cpp =================================================================== --- krdc/mainwindow.cpp (revision 881946) +++ krdc/mainwindow.cpp (revision 881947) @@ -777,10 +777,10 @@ } } -void MainWindow::quit() +void MainWindow::quit(bool systemEvent) { bool haveRemoteConnections = m_remoteViewList.count(); - if (!haveRemoteConnections || KMessageBox::warningContinueCancel(this, + if (systemEvent || !haveRemoteConnections || KMessageBox::warningContinueCancel(this, i18n("Are you sure you want to quit the KDE Remote Desktop Client?"), i18n("Confirm Quit"), KStandardGuiItem::quit(), KStandardGuiItem::cancel(), @@ -828,12 +828,15 @@ void MainWindow::closeEvent(QCloseEvent *event) { - event->ignore(); - - if (Settings::systemTrayIcon()) { - hide(); // just hide the mainwindow, keep it in systemtray + if (event->spontaneous()) { // Returns true if the event originated outside the application (a system event); otherwise returns false. + event->ignore(); + if (Settings::systemTrayIcon()) { + hide(); // just hide the mainwindow, keep it in systemtray + } else { + quit(); + } } else { - quit(); + quit(true); } } Index: krdc/mainwindow.h =================================================================== --- krdc/mainwindow.h (revision 881946) +++ krdc/mainwindow.h (revision 881947) @@ -59,7 +59,7 @@ private slots: void restoreOpenSessions(); - void quit(); + void quit(bool systemEvent = false); void preferences(); void configureNotifications(); void configureKeys();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor