summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/tools/quicklauncher/main.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp
index b1befce..fb2ca44 100644
--- a/core/tools/quicklauncher/main.cpp
+++ b/core/tools/quicklauncher/main.cpp
@@ -81,2 +81,3 @@ void setproctitle (const char *fmt,...) {
}
+
memset(argv0[0], '\0', argv_lth); /* clear the memory area */
@@ -113,2 +114,3 @@ public:
}
+
if ( mainWindow ) {
@@ -156,2 +158,3 @@ private:
static char **myargv = new char *[myargc + 1];
+
for ( int j = 0; j < myargc; j++ ) {
@@ -160,2 +163,3 @@ private:
}
+
myargv[myargc] = NULL;
@@ -186,4 +190,6 @@ int main( int argc, char** argv )
int sep = arg0.findRev( '/' );
+
if ( sep > 0 )
arg0 = arg0.mid( sep+1 );
+
if ( arg0 != "quicklauncher" ) {
@@ -227,7 +233,2 @@ int main( int argc, char** argv )
// memory that is not needed by all applications.
-#if 0
- TimeZone::current().isValid(); // popuplate timezone cache
- TimeString::currentDateFormat(); // create internal structures
- TimeString::currentAMPM();
-#endif
Resource::loadIconSet("new"); // do internal init
@@ -253,4 +254,4 @@ int main( int argc, char** argv )
delete (QWidget*)mainWindow;
-
delete app;
+
if ( appIface )
@@ -258,2 +259,4 @@ int main( int argc, char** argv )
delete loader;
+
+
// Neither QLibrary nor my Dropin is a QObject and they don't depend