r21533 by craig - Ensure specified prefs dir terminates with /
scribus-commit
scribus-commit at lists.scribus.net
Mon Nov 21 23:18:59 UTC 2016
Author: craig
Date: Mon Nov 21 23:18:59 2016
New Revision: 21533
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21533
Log:
Ensure specified prefs dir terminates with /
Modified:
trunk/Scribus/scribus/scribusapp.cpp
Modified: trunk/Scribus/scribus/scribusapp.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21533&path=/trunk/Scribus/scribus/scribusapp.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusapp.cpp (original)
+++ trunk/Scribus/scribus/scribusapp.cpp Mon Nov 21 23:18:59 2016
@@ -269,6 +269,8 @@
std::exit(EXIT_FAILURE);
}
m_prefsUserDir = QFile::decodeName(args[argi + 1].toLocal8Bit());
+ if (!m_prefsUserDir.endsWith("/"))
+ m_prefsUserDir.append('/');
if (!QDir(m_prefsUserDir).exists())
{
std::cout << tr("Preferences directory %1 does not exist, aborting.").arg(m_prefsUserDir).toLocal8Bit().data() << std::endl;
More information about the scribus-commit
mailing list