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 highlight on Shortcut area
[staging/HomeScreen.git]
/
HomeScreen
/
src2
/
applicationlauncher.cpp
diff --git
a/HomeScreen/src2/applicationlauncher.cpp
b/HomeScreen/src2/applicationlauncher.cpp
index
0ebc9b9
..
7011ebf
100644
(file)
--- a/
HomeScreen/src2/applicationlauncher.cpp
+++ b/
HomeScreen/src2/applicationlauncher.cpp
@@
-43,5
+43,20
@@
int ApplicationLauncher::launch(const QString &application)
result = mp_dBusAppFrameworkProxy->launchApp(application);
qDebug() << "pid:" << result;
result = mp_dBusAppFrameworkProxy->launchApp(application);
qDebug() << "pid:" << result;
+ if (result > 1) {
+ setCurrent(application);
+ }
return result;
}
return result;
}
+
+QString ApplicationLauncher::current() const
+{
+ return m_current;
+}
+
+void ApplicationLauncher::setCurrent(const QString ¤t)
+{
+ if (m_current == current) return;
+ m_current = current;
+ emit currentChanged(current);
+}