]> git.sur5r.net Git - bacula/bacula/commitdiff
Regex and remove .libs from the path.
authorDirk H Bartley <dbartley@schupan.com>
Sun, 22 Mar 2009 22:51:04 +0000 (22:51 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 22 Mar 2009 22:51:04 +0000 (22:51 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8583 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/help/help.cpp

index b689e4a200c0893c10373dae659ca7c3a47b6028..0e280f0a0a4ed6cc35784a6a8d0eb01d221eecfe 100644 (file)
@@ -63,6 +63,12 @@ void Help::updateTitle()
 
 void Help::displayFile(const QString &file)
 {
-   QString path = QApplication::applicationDirPath() + "/help";
+   QRegExp rx;
+   rx.setPattern("/\\.libs");
+   QString path = QApplication::applicationDirPath();
+   int pos = rx.indexIn(path);
+   if (pos)
+      path = path.remove(pos, 6);
+   path += "/help";
    new Help(path, file);
 }