summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-05-10 21:36:19 -0500
committerTimothy Pearson <[email protected]>2014-05-10 21:36:19 -0500
commitc85a1eae45c14583bd8ba036c36a90352d2ef0f5 (patch)
tree40710388fc2777bc4a502239105e68c51d2bd1c5
parentd30bca0277c12282128cc0dba4a14fb96f824eba (diff)
downloadgtk-qt-engine-c85a1eae45c14583bd8ba036c36a90352d2ef0f5.tar.gz
gtk-qt-engine-c85a1eae45c14583bd8ba036c36a90352d2ef0f5.zip
Fix prior commit
-rw-r--r--src/qt_qt_wrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index f9c9fe0..07ea866 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -336,7 +336,8 @@ void createTQApp()
TQString cmdlineAppName = "unknown-gtk-tqt-application";
TQStringList cmdlineArgs = TQStringList::split(" ", cmdLine, false);
if (cmdlineArgs.count() > 0) {
- cmdlineAppName = cmdlineArgs[0];
+ TQFileInfo fi(cmdlineArgs[0]);
+ cmdlineAppName = fi.fileName();
cmdlineAppName.append("-gtk-tqt-application");
}
int cmdlineAppNameLength = cmdlineAppName.length() + 1;