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-7.0.0~3271 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99e536291627d65a997f7f50efe03631aee5be6f;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); }