aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt33
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-01-31 18:23:07 +0800
committerlofi <lofi@FreeBSD.org>2006-01-31 18:23:07 +0800
commit89ef16896d368f884c140a17a2376fc49d9d64c2 (patch)
tree7fb35adc67aa46e2815e5c20a038706754b6b145 /x11-toolkits/qt33
parent8044b96c1ca706e4b39931b4941d99f85398c6ab (diff)
downloadfreebsd-ports-gnome-89ef16896d368f884c140a17a2376fc49d9d64c2.tar.gz
freebsd-ports-gnome-89ef16896d368f884c140a17a2376fc49d9d64c2.tar.zst
freebsd-ports-gnome-89ef16896d368f884c140a17a2376fc49d9d64c2.zip
Don't spam Qt's notion of a sysconfigdir with uic tempfiles.
Diffstat (limited to 'x11-toolkits/qt33')
-rw-r--r--x11-toolkits/qt33/files/patch-src_tools-qsettings.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11-toolkits/qt33/files/patch-src_tools-qsettings.cpp b/x11-toolkits/qt33/files/patch-src_tools-qsettings.cpp
new file mode 100644
index 000000000000..882adbc41497
--- /dev/null
+++ b/x11-toolkits/qt33/files/patch-src_tools-qsettings.cpp
@@ -0,0 +1,16 @@
+--- src/tools/qsettings.cpp.orig Fri Sep 2 14:42:53 2005
++++ src/tools/qsettings.cpp Tue Jan 31 10:23:14 2006
+@@ -500,7 +500,12 @@
+ } );
+ #endif // Q_OS_TEMP
+ #else
+- defPath = qInstallPathSysconf();
++ if (getenv( "TMPDIR" ) != 0) {
++ defPath = QString( getenv( "TMPDIR" ) );
++ }
++ else {
++ defPath= "/tmp";
++ }
+ #endif
+ QDir dir(appSettings);
+ if (! dir.exists()) {