[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace] kmenuedit: Convert the else if to an else
From: Albert Astals Cid <aacid () kde ! org>
Date: 2013-02-28 23:38:24
Message-ID: 20130228233824.20ADFA604F () git ! kde ! org
[Download RAW message or body]
Git commit 316c0c55b84d4e47b593229df143fd6397d23108 by Albert Astals Cid, on behalf of Julien Borderie.
Committed on 01/03/2013 at 00:37.
Pushed by aacid into branch 'master'.
Convert the else if to an else
Part of review 109084
M +3 -3 kmenuedit/treeview.cpp
http://commits.kde.org/kde-workspace/316c0c55b84d4e47b593229df143fd6397d23108
diff --git a/kmenuedit/treeview.cpp b/kmenuedit/treeview.cpp
index 375d93e..7a531c2 100644
--- a/kmenuedit/treeview.cpp
+++ b/kmenuedit/treeview.cpp
@@ -1495,12 +1495,12 @@ void TreeView::sort(const int sortCmd)
TreeItem *itemToSort;
if (sortType == SortByName || sortType == SortByDescription) {
itemToSort = static_cast<TreeItem*>(selectedItem());
- } else if (sortType == SortAllByName) {
- sortType = SortByName;
- itemToSort = static_cast<TreeItem*>(invisibleRootItem());
} else if (sortType == SortAllByDescription) {
sortType = SortByDescription;
itemToSort = static_cast<TreeItem*>(invisibleRootItem());
+ } else /* if (sortType == SortAllByName) */ {
+ sortType = SortByName;
+ itemToSort = static_cast<TreeItem*>(invisibleRootItem());
}
// proceed to the sorting
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic