From: Dirk H Bartley Date: Sun, 22 Mar 2009 22:51:04 +0000 (+0000) Subject: Regex and remove .libs from the path. X-Git-Tag: Release-3.0.0~119 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=279b76ad9ec511099b3c5654906fa6ac02b59250;p=bacula%2Fbacula Regex and remove .libs from the path. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8583 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/help/help.cpp b/bacula/src/qt-console/help/help.cpp index b689e4a200..0e280f0a0a 100644 --- a/bacula/src/qt-console/help/help.cpp +++ b/bacula/src/qt-console/help/help.cpp @@ -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); }