diff options
Diffstat (limited to 'cad/vipec/files/patch-Setup.cpp')
-rw-r--r-- | cad/vipec/files/patch-Setup.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cad/vipec/files/patch-Setup.cpp b/cad/vipec/files/patch-Setup.cpp new file mode 100644 index 000000000000..419b8cf253bb --- /dev/null +++ b/cad/vipec/files/patch-Setup.cpp @@ -0,0 +1,22 @@ +--- Setup.cpp.orig Fri Oct 3 09:31:11 2003 ++++ Setup.cpp Fri Aug 20 23:49:30 2004 +@@ -163,8 +163,17 @@ + vipecHome_ = QString(getenv("VIPECHOME")); + if ( vipecHome_.isEmpty() ) + { +- vipecHome_ = dir.absPath(); +- Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++#ifdef VIPECHOME ++ vipecHome_ = QString(VIPECHOME); ++ if (vipecHome_.isEmpty()) ++ { ++ vipecHome_ = dir.absPath(); ++ Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++ } ++#else ++ vipecHome_ = dir.absPath(); ++ Logger::warning("VIPECHOME not set, assuming " + vipecHome_); ++#endif + } + helpFilename_ = vipecHome_ + "/help/index.html"; + configFilename_ = vipecHome_ + "/vipec.cfg"; |