Summary: | kleopatra server features should be disabled | ||
---|---|---|---|
Product: | [Unmaintained] Kleopatra Mobile | Reporter: | Marcus Brinkmann <marcus.brinkmann> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | aheinecke, bjoern.ricks, ludwig.reiter, tokoe |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Windows CE | ||
OS: | Microsoft Windows CE | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Marcus Brinkmann
2010-12-07 15:09:23 UTC
commit 3c48683e0db1face527a1bd318e86f7159d38352 branch master Author: Tobias Koenig <tokoe@kde.org> Date: Tue Jan 4 09:48:38 2011 +0100 Do not ask for 'close or quit' on shutdown. In the mobile version kleopatra does not act as server, so we should always close the application if the user requests it. CCBUG: 259125 diff --git a/kleopatra/mainwindow_mobile.cpp b/kleopatra/mainwindow_mobile.cpp index 030e4df..a44fe3e 100644 --- a/kleopatra/mainwindow_mobile.cpp +++ b/kleopatra/mainwindow_mobile.cpp @@ -189,19 +189,7 @@ public: } void closeAndQuit() { - const QString app = KGlobal::mainComponent().aboutData()->programName(); - const int rc = KMessageBox::questionYesNoCancel( q, - i18n("%1 may be used by other applications as a service.\n" - "You may instead want to close this window without exiting %1.", app ), - i18n("Really Quit?"), KStandardGuiItem_close(), KStandardGuiItem_quit(), KStandardGuiItem::cancel(), - "really-quit-" + app.toLower() ); - if ( rc == KMessageBox::Cancel ) - return; - if ( !q->close() ) - return; - // WARNING: 'this' might be deleted at this point! - if ( rc == KMessageBox::No ) - qApp->quit(); + qApp->quit(); } void selfTest() { I saw the automatic minimization only once, when I started kleopatra the first time on the desktop. Afterwards it was always started in fullscreen. Is the minimized start reproducible for you? Haven't seen this issue ever -> closing Marcus feel free to reopen it ;-) test version 20110116 git-4d1bc61 The kleopatra process is still running, after closing the program with x in the process list. Test: 1. Start kleopatra. 2. Switch to main window. 3. open program list and close kleopatra (x button) 4. Wait for a moment. 5. Look at the process list. => kleopatra is still running. Reopened commit 254268ba5caf227360d4dc67c3c514280c41c06e branch master Author: Tobias Koenig <tokoe@kde.org> Date: Tue Jan 18 15:53:03 2011 +0100 Shutdown kleopatra when closed via 'X' button Really close the kleopatra application on mobile devices when the user requested so via the 'X' button. BUG: 259125 diff --git a/kleopatra/mainwindow_mobile.cpp b/kleopatra/mainwindow_mobile.cpp index e4cf2ab..9f47a3e 100644 --- a/kleopatra/mainwindow_mobile.cpp +++ b/kleopatra/mainwindow_mobile.cpp @@ -334,6 +334,9 @@ void MainWindow::Private::slotConfigCommitted() { } void MainWindow::closeEvent( QCloseEvent * e ) { + + d->closeAndQuit(); + // KMainWindow::closeEvent() insists on quitting the application, // so do not let it touch the event... kDebug(); I have not seen any problems related to this in a while. BTW, note that in the future kleo mobile may have a background mode and be used as a UI server. Just so you know that the code may come back at some time, so it may have been more prudent to define it out rather than delete it. But that's water under the bridge now... |