From 99e536291627d65a997f7f50efe03631aee5be6f Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 22 Mar 2009 22:51:04 +0000 Subject: [PATCH] Regex and remove .libs from the path. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8583 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/help/help.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } -- 2.39.5