From 56450c0322c2335a59ae8d8796e41397cdb09329 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Wed, 15 Sep 2004 22:40:33 +0000 Subject: better openfile dialogs / make dialogs explicit modal --- diff --git a/pwmanager/pwmanager/addentrywndimpl.cpp b/pwmanager/pwmanager/addentrywndimpl.cpp index 9e0fde9..73ba36c 100644 --- a/pwmanager/pwmanager/addentrywndimpl.cpp +++ b/pwmanager/pwmanager/addentrywndimpl.cpp @@ -36,6 +36,9 @@ AddEntryWndImpl::AddEntryWndImpl() +#ifdef PWM_EMBEDDED + : addEntryWnd( 0, "AddEntryWndImpl", TRUE) +#endif { editAdvCommentButton = 0; commentTextEdit = 0; diff --git a/pwmanager/pwmanager/configwndimpl.cpp b/pwmanager/pwmanager/configwndimpl.cpp index 5aa38d4..595a6e7 100644 --- a/pwmanager/pwmanager/configwndimpl.cpp +++ b/pwmanager/pwmanager/configwndimpl.cpp @@ -37,6 +37,10 @@ #endif ConfigWndImpl::ConfigWndImpl() +#ifdef PWM_EMBEDDED + : configWnd(0, "ConfigWndImpl", TRUE) +#endif + { } @@ -56,9 +60,15 @@ void ConfigWndImpl::cancelButton_slot() void ConfigWndImpl::browseAutoStButton_slot() { +#ifndef PWM_EMBEDDED QString path(KFileDialog::getOpenFileName(QString::null, i18n("*.pwm|PwM Password file\n" "*|All files"), this)); +#else + QString path = locateLocal( "data", KGlobal::getAppName() + "/*.pwm"); + path = KFileDialog::getOpenFileName(filename, + i18n("password filename(*.pwm)"), this); +#endif if (path != QString::null) autoStartLineEdit->setText(path); } -- cgit v0.9.0.2