Code Review
/
staging
/
HomeScreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix language when user logs out
[staging/HomeScreen.git]
/
HomeScreen
/
src2
/
applicationmodel.cpp
diff --git
a/HomeScreen/src2/applicationmodel.cpp
b/HomeScreen/src2/applicationmodel.cpp
index
ff7276e
..
ab93b6f
100644
(file)
--- a/
HomeScreen/src2/applicationmodel.cpp
+++ b/
HomeScreen/src2/applicationmodel.cpp
@@
-74,6
+74,10
@@
ApplicationModel::Private::Private(ApplicationModel *parent)
}
void ApplicationModel::changeOrder(const int &hash)
{
+ if(hash < 0) {
+ d->data = d->originalData;
+ return;
+ }
int order = qAbs(hash) % 7;
QList<int> o = d->orders.at(order);
QList<AppInfo> newData;