summaryrefslogtreecommitdiffstats
path: root/quanta/src/quanta_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/quanta_init.cpp')
-rw-r--r--quanta/src/quanta_init.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp
index f01f22d7..62931561 100644
--- a/quanta/src/quanta_init.cpp
+++ b/quanta/src/quanta_init.cpp
@@ -16,6 +16,10 @@
* *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
// include files for QT
#include <tqdir.h>
#include <tqprinter.h>
@@ -1348,6 +1352,7 @@ TQString QuantaInit::retrievePID(const TQString& filename)
TQString strPID = TQString();
strPID = filename.mid(filename.findRev("P") + 1);
+
if (strPID.isEmpty())
strPID = filename.mid(filename.findRev("N") + 1);