X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=b24eefb96bcafddfb9e1341a03a52884b39a7bf6;hp=0b34f297c1559654f57f6b949014c85e79368549;hb=aa9cdc4a172cad4aeaeba671720f4720be6a9c61;hpb=abfef576046884aaf05953939510b5e2cd146bcb diff --git a/src/core/core.cpp b/src/core/core.cpp index 0b34f297..b24eefb9 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -41,8 +41,11 @@ # include #endif /* Q_OS_WIN32 */ -#include -#include +// umask +#ifndef Q_OS_WIN32 +# include +# include +#endif /* Q_OS_WIN32 */ // ============================== // Custom Events @@ -77,7 +80,9 @@ void Core::destroy() { Core::Core() : _storage(0) { +#ifndef Q_OS_WIN32 umask(S_IRWXG | S_IRWXO); +#endif /* Q_OS_WIN32 */ _startTime = QDateTime::currentDateTime().toUTC(); // for uptime :) Quassel::loadTranslation(QLocale::system());