mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 15:45:59 +01:00
Use rd.conf Tuning/TempDirectory as RDTempDir result when available
This commit is contained in:
@@ -968,6 +968,10 @@ QString RDHomeDir()
|
||||
|
||||
QString RDTempDir()
|
||||
{
|
||||
QString conf_temp_directory = RDConfiguration()->tempDirectory();
|
||||
if (conf_temp_directory != NULL) {
|
||||
return conf_temp_directory;
|
||||
}
|
||||
#ifdef WIN32
|
||||
if(getenv("TEMP")!=NULL) {
|
||||
return QString(getenv("TEMP"));
|
||||
|
||||
Reference in New Issue
Block a user