ports/cad/vipec/files/patch-HelpWindow.cpp
Kirill Ponomarev f62713e133 Fix build with gcc-3.4
PR:		ports/70784
Submitted by:	Ports Fury
2004-08-22 01:06:12 +00:00

18 lines
481 B
C++

--- HelpWindow.cpp.orig Thu Oct 2 04:40:40 2003
+++ HelpWindow.cpp Fri Aug 20 23:49:10 2004
@@ -36,7 +36,15 @@
QString vipecHome = QString(getenv("VIPECHOME"));
if ( vipecHome.isEmpty() )
{
+#ifdef VIPECHOME
+ vipecHome = QString(VIPECHOME);
+ if (vipecHome.isEmpty())
+ {
+ vipecHome = dir.absPath();
+ }
+#else
vipecHome = dir.absPath();
+#endif
}
home_ = vipecHome + "/help/index.html";
const QStringList currentDir(".");