-rw-r--r-- | noncore/apps/zsafe/zsafe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp index e86b3d2..9341425 100644 --- a/noncore/apps/zsafe/zsafe.cpp +++ b/noncore/apps/zsafe/zsafe.cpp @@ -2809,8 +2809,10 @@ void ZSafe::setCategoryDialogFields(CategoryDialog *dialog) if (cat) { icon = cat->getIconName(); } + else + icon = conf->readEntry(APP_KEY+selectedItem->text(0)); } else { dialog->Field1->setText(tr("Name")); @@ -2874,8 +2876,10 @@ void ZSafe::setCategoryDialogFields(CategoryDialog *dialog, QString category) if (cat) { icon = cat->getIconName(); } + else + icon = conf->readEntry(APP_KEY+category); #ifdef DESKTOP QDir d(iconPath); #else |