summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo/menumanager.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2010-10-08 07:21:51 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2010-10-08 07:21:51 (GMT)
commit904b56a9cc810b340d1b7db81199fc0e15b4aab6 (patch)
tree5792edd70546f6500210164327d0014f147d1ffe /demos/qtdemo/menumanager.cpp
parent91396846206e6b41d32fa8a30888261581bd28dc (diff)
parent8130fcbffe365c0e019f45baae7f1b273d8e17e7 (diff)
downloadQt-904b56a9cc810b340d1b7db81199fc0e15b4aab6.zip
Qt-904b56a9cc810b340d1b7db81199fc0e15b4aab6.tar.gz
Qt-904b56a9cc810b340d1b7db81199fc0e15b4aab6.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'demos/qtdemo/menumanager.cpp')
-rw-r--r--demos/qtdemo/menumanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/qtdemo/menumanager.cpp b/demos/qtdemo/menumanager.cpp
index fe3c5aa..ea9146e 100644
--- a/demos/qtdemo/menumanager.cpp
+++ b/demos/qtdemo/menumanager.cpp
@@ -518,6 +518,7 @@ QString MenuManager::resolveExeFile(const QString &name)
dir.cd(dirName);
dir.cd(fileName);
+ fileName = fileName.split("/").last();
QFile unixFile(dir.path() + "/" + fileName);
if (unixFile.exists()) return unixFile.fileName();
QFile winR(dir.path() + "\\release\\" + fileName + ".exe");