Commit facef2d2 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Prefer qEnvironmentVariableIsEmpty over qgetenv

parent 0c9ff9aa
......@@ -352,7 +352,7 @@ bool KisApplication::start(const KisApplicationArguments &args)
// TODO: fix print & exportAsPdf to work without mainwindow shown
const bool showmainWindow = !exportAs; // would be !batchRun;
const bool showSplashScreen = !m_batchRun && qgetenv("NOSPLASH").isEmpty() && qgetenv("XDG_CURRENT_DESKTOP") != "GNOME";
const bool showSplashScreen = !m_batchRun && qEnvironmentVariableIsEmpty("NOSPLASH") && qgetenv("XDG_CURRENT_DESKTOP") != "GNOME";
if (showSplashScreen) {
d->splashScreen->show();
d->splashScreen->repaint();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment