[Bug 259125] kleopatra server features should be disabled

Tobias Koenig tokoe at kde.org
Tue Jan 4 08:49:31 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=259125





--- Comment #1 from Tobias Koenig <tokoe kde org>  2011-01-04 09:49:30 ---
commit 3c48683e0db1face527a1bd318e86f7159d38352
branch master
Author: Tobias Koenig <tokoe at 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() {

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list