summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/main.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/unsupported/oipkg/main.cpp b/noncore/unsupported/oipkg/main.cpp
index 5cef2dc..bacc973 100644
--- a/noncore/unsupported/oipkg/main.cpp
+++ b/noncore/unsupported/oipkg/main.cpp
@@ -2,21 +2,22 @@
#include "mainwindow.h"
#include <qpe/qpeapplication.h>
#include <qstring.h>
#include <qmessagebox.h>
int debugLevel;
int main( int argc, char ** argv )
{
debugLevel = 2;
if (argc > 0)
- {
+ {
debugLevel = QString ( argv[1] ).toInt();
- }
+ }
QPEApplication a( argc, argv );
MainWindow mw;
- QMessageBox::information( &mw, "oipkg","While ipkg is working\noipkg is hanging.\nPlease be patient!");
+ if (debugLevel < 4)
+ QMessageBox::information( &mw, "oipkg","While ipkg is working\noipkg is hanging.\nPlease be patient!");
a.showMainDocumentWidget( &mw );
return a.exec();
}