summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/zsafe.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/zsafe.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/zsafe.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp
index 1c15852..2dd94aa 100644
--- a/noncore/apps/zsafe/zsafe.cpp
+++ b/noncore/apps/zsafe/zsafe.cpp
@@ -375,5 +375,5 @@ static const char* const general_data[] = {
#else
conf = new Config (cfgFile, Config::File);
- conf->setGroup ("zsafe");
+ conf->setGroup ("zsafePrefs");
#endif
}
@@ -493,5 +493,5 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
setCaption( tr( "ZSafe" ) );
QString zsafeAppDirPath = QDir::homeDirPath() + "/Documents/application/zsafe";
- QString filename = conf->readEntry(APP_KEY+"document");
+ filename = conf->readEntry(APP_KEY+"document");
if ( !QFileInfo(filename).exists() || !QDir(zsafeAppDirPath).exists() )
{
@@ -763,6 +763,6 @@ void ZSafe::deletePwd()
void ZSafe::editPwd()
{
- if (!selectedItem)
- return;
+ if (!selectedItem)
+ return;
if (!isCategory(selectedItem))
{
@@ -806,5 +806,5 @@ void ZSafe::editPwd()
#ifdef DESKTOP
int result = dialog->exec();
-// result = QDialog::Accepted;
+ result = QDialog::Accepted;
#endif
if (result == Accepted)
@@ -837,7 +837,7 @@ void ZSafe::editPwd()
void ZSafe::newPwd()
{
- if (!selectedItem)
- return;
-
+ if (!selectedItem)
+ return;
+ qWarning("new item");
if (!isCategory(selectedItem))
selectedItem = selectedItem->parent();
@@ -846,5 +846,5 @@ void ZSafe::newPwd()
{
QString cat = selectedItem->text(0);
-
+ qWarning(cat);
// open the 'New Entry' dialog
NewDialog *dialog = new NewDialog(this, "new_entry", TRUE);
@@ -875,5 +875,5 @@ retype:
#ifdef DESKTOP
int result = dialog->exec();
-// result = QDialog::Accepted;
+ result = QDialog::Accepted;
#endif