-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) | |||
2809 | if (cat) | 2809 | if (cat) |
2810 | { | 2810 | { |
2811 | icon = cat->getIconName(); | 2811 | icon = cat->getIconName(); |
2812 | } | 2812 | } |
2813 | else | ||
2814 | icon = conf->readEntry(APP_KEY+selectedItem->text(0)); | ||
2813 | } | 2815 | } |
2814 | else | 2816 | else |
2815 | { | 2817 | { |
2816 | dialog->Field1->setText(tr("Name")); | 2818 | dialog->Field1->setText(tr("Name")); |
@@ -2874,8 +2876,10 @@ void ZSafe::setCategoryDialogFields(CategoryDialog *dialog, QString category) | |||
2874 | if (cat) | 2876 | if (cat) |
2875 | { | 2877 | { |
2876 | icon = cat->getIconName(); | 2878 | icon = cat->getIconName(); |
2877 | } | 2879 | } |
2880 | else | ||
2881 | icon = conf->readEntry(APP_KEY+category); | ||
2878 | 2882 | ||
2879 | #ifdef DESKTOP | 2883 | #ifdef DESKTOP |
2880 | QDir d(iconPath); | 2884 | QDir d(iconPath); |
2881 | #else | 2885 | #else |