From 51d06a743940249e34a2bcc970b825bad99819d3 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 21 Jul 2004 20:44:12 +0000 Subject: fixes --- (limited to 'noncore/apps/zsafe/zsafe.cpp') 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 @@ -374,7 +374,7 @@ static const char* const general_data[] = { #endif #else conf = new Config (cfgFile, Config::File); - conf->setGroup ("zsafe"); + conf->setGroup ("zsafePrefs"); #endif } } @@ -492,7 +492,7 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl ) #endif 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() ) { // check if the directory application exists, if not @@ -762,8 +762,8 @@ void ZSafe::deletePwd() void ZSafe::editPwd() { - if (!selectedItem) - return; + if (!selectedItem) + return; if (!isCategory(selectedItem)) { // open the 'New Entry' dialog @@ -805,7 +805,7 @@ void ZSafe::editPwd() #endif #ifdef DESKTOP int result = dialog->exec(); -// result = QDialog::Accepted; + result = QDialog::Accepted; #endif if (result == Accepted) { @@ -836,16 +836,16 @@ void ZSafe::editPwd() void ZSafe::newPwd() { - if (!selectedItem) - return; - + if (!selectedItem) + return; + qWarning("new item"); if (!isCategory(selectedItem)) selectedItem = selectedItem->parent(); if (isCategory(selectedItem)) { QString cat = selectedItem->text(0); - + qWarning(cat); // open the 'New Entry' dialog NewDialog *dialog = new NewDialog(this, "new_entry", TRUE); #ifdef Q_WS_WIN @@ -874,7 +874,7 @@ retype: #endif #ifdef DESKTOP int result = dialog->exec(); -// result = QDialog::Accepted; + result = QDialog::Accepted; #endif if (result == Accepted) -- cgit v0.9.0.2