[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 1c0483e0f7b7fa8afc70537a5ab978a45e33d1d8

George Kiagiadakis gkiagia-guest at alioth.debian.org
Wed Feb 18 22:51:47 UTC 2009


The following commit has been merged in the master branch:
commit 1c0483e0f7b7fa8afc70537a5ab978a45e33d1d8
Author: George Kiagiadakis <gkiagia at users.sourceforge.net>
Date:   Thu Feb 19 00:04:23 2009 +0200

    Initialize QApplication after checking for cases where kaboom should not start.
    This avoids initializing the X11 connection and thus saves ~100ms from startup time
    (on my system, which I consider to be fast... ;) )

diff --git a/main.cpp b/main.cpp
index c3f444d..34b31bd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,7 +19,6 @@
 
 int main(int argc, char* argv[])
 {
-  QApplication app(argc,argv);
   if(QFile::exists(QDir::homePath()+"/.local/kdebian3to4"))
   {
     return 0;
@@ -29,6 +28,8 @@ int main(int argc, char* argv[])
       QFile(QDir::homePath()+"/.local/kdebian3to4").open(QIODevice::WriteOnly);
       return 0;
   }
+
+  QApplication app(argc,argv);
   MigrationTool main;
   main.show();
   int exitvalue = app.exec();

-- 
Kaboom - Debian KDE 3->4 migration tool



More information about the pkg-kde-commits mailing list