Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/launcherview.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index c9efacb..2783423 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -329,15 +329,12 @@ void LauncherIconView::setSortMethod( SortMethod m ) | |||
329 | sort(); | 329 | sort(); |
330 | } | 330 | } |
331 | } | 331 | } |
332 | 332 | ||
333 | void LauncherIconView::setCategoryFilter( int catfilter, bool resort ) | 333 | void LauncherIconView::setCategoryFilter( int catfilter, bool resort ) |
334 | { | 334 | { |
335 | Categories cat; | ||
336 | cat.load( categoryFileName() ); | ||
337 | QString str; | ||
338 | if ( catfilter == -2 ) | 335 | if ( catfilter == -2 ) |
339 | cf = 0; | 336 | cf = 0; |
340 | else | 337 | else |
341 | cf = catfilter; | 338 | cf = catfilter; |
342 | hideOrShowItems(resort); | 339 | hideOrShowItems(resort); |
343 | } | 340 | } |
@@ -1080,12 +1077,13 @@ void LauncherView::itemPressed( int btn, QIconViewItem *item ) | |||
1080 | } | 1077 | } |
1081 | } | 1078 | } |
1082 | 1079 | ||
1083 | void LauncherView::removeAllItems() | 1080 | void LauncherView::removeAllItems() |
1084 | { | 1081 | { |
1085 | odebug << "LauncherView::removeAllItems()" << oendl; | 1082 | odebug << "LauncherView::removeAllItems()" << oendl; |
1083 | if (LauncherIconView::sm_EyeCache) LauncherIconView::sm_EyeCache->clear(); | ||
1086 | icons->clear(); | 1084 | icons->clear(); |
1087 | } | 1085 | } |
1088 | 1086 | ||
1089 | bool LauncherView::removeLink(const QString& linkfile) | 1087 | bool LauncherView::removeLink(const QString& linkfile) |
1090 | { | 1088 | { |
1091 | return icons->removeLink(linkfile); | 1089 | return icons->removeLink(linkfile); |