author | zautrix <zautrix> | 2004-10-19 23:38:16 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-19 23:38:16 (UTC) |
commit | f013ff3c0108100c6dbf037a05502ed493361fbf (patch) (side-by-side diff) | |
tree | bf274ac58b55cea0e2f609db8ae5f27f4418a2df /pwmanager/pwmanager/pwminit.cpp | |
parent | f605b2d40ff0f90b132ca880afa83ac751162a2e (diff) | |
download | kdepimpi-f013ff3c0108100c6dbf037a05502ed493361fbf.zip kdepimpi-f013ff3c0108100c6dbf037a05502ed493361fbf.tar.gz kdepimpi-f013ff3c0108100c6dbf037a05502ed493361fbf.tar.bz2 |
desktop fixes
Diffstat (limited to 'pwmanager/pwmanager/pwminit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwminit.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pwmanager/pwmanager/pwminit.cpp b/pwmanager/pwmanager/pwminit.cpp index 8946443..ea9e330 100644 --- a/pwmanager/pwmanager/pwminit.cpp +++ b/pwmanager/pwmanager/pwminit.cpp @@ -19,6 +19,7 @@ #include "pwminit.h" #include "randomizer.h" +#include <qdir.h> #ifndef PWM_EMBEDDED #include "selftest.h" @@ -128,6 +129,7 @@ PwMInit::~PwMInit() void PwMInit::initializeApp() { + qDebug("PwMInit::initializeApp() "); PWM_ASSERT(runStatus == unknown); runStatus = init; initPosixSignalHandler(); @@ -140,18 +142,22 @@ void PwMInit::initializeApp() initKeycard(); initTray(); handleCmdLineArgs(); - + qDebug("handle "); bool openDeeplocked = false; if (conf()->confGlobAutostartDeepLocked() || savedCmd.open_deeplocked) openDeeplocked = true; - if (conf()->confWndAutoMinimizeOnStart() || - savedCmd.minToTray) { + if ( false ){ + // LR is not working + //if (conf()->confWndAutoMinimizeOnStart() || + // savedCmd.minToTray) { PwMDoc *newDoc = createDoc(); + qDebug(" createDoc()"); if (!newDoc->openDocUi(newDoc, conf()->confGlobAutoStart(), openDeeplocked)) { delete newDoc; + } //US ENH for embedded devices: in the case of failure, open a document the default way createMainWnd(conf()->confGlobAutoStart(), @@ -163,7 +169,7 @@ void PwMInit::initializeApp() - } + // } } else { createMainWnd(conf()->confGlobAutoStart(), openDeeplocked, @@ -286,6 +292,7 @@ PwM * PwMInit::createMainWnd(const QString &loadFile, PwMDoc *doc, bool minimized) { + qDebug("PwMInit::createMainWnd "); PwM *newWnd; if (!doc) doc = createDoc(); @@ -317,6 +324,7 @@ PwM * PwMInit::createMainWnd(const QString &loadFile, app->setMainWidget( newWnd ); newWnd->resize (640, 480 ); newWnd->show(); + qDebug("show "); #endif //DESKTOP_VERSION #endif //PWM_EMBEDDED |