summaryrefslogtreecommitdiffstats
path: root/tdeio/bookmarks/kbookmark.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-04 09:03:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-04 09:03:25 -0600
commite0b1bfb0140e1d484f71683e820731abdd0779d5 (patch)
treecf49f872577733fabde2d5b38c8c045e78dee9eb /tdeio/bookmarks/kbookmark.cc
parentd80ccaf94ce31d24834bf3051fb9438adf23e4fd (diff)
downloadtdelibs-e0b1bfb0140e1d484f71683e820731abdd0779d5.tar.gz
tdelibs-e0b1bfb0140e1d484f71683e820731abdd0779d5.zip
Fix a number of build warnings
Diffstat (limited to 'tdeio/bookmarks/kbookmark.cc')
-rw-r--r--tdeio/bookmarks/kbookmark.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/tdeio/bookmarks/kbookmark.cc b/tdeio/bookmarks/kbookmark.cc
index 8bbaa5e43..0da05be4f 100644
--- a/tdeio/bookmarks/kbookmark.cc
+++ b/tdeio/bookmarks/kbookmark.cc
@@ -296,16 +296,21 @@ KURL KBookmark::url() const
TQString KBookmark::icon() const
{
TQString icon = element.attribute("icon");
- if ( icon.isEmpty() )
+ if ( icon.isEmpty() ) {
// Default icon depends on URL for bookmarks, and is default directory
// icon for groups.
- if ( isGroup() )
+ if ( isGroup() ) {
icon = "bookmark_folder";
- else
- if ( isSeparator() )
+ }
+ else {
+ if ( isSeparator() ) {
icon = "eraser"; // whatever
- else
+ }
+ else {
icon = KMimeType::iconForURL( url() );
+ }
+ }
+ }
return icon;
}