Skip to content

Commit

Permalink
Crude workaround: Do not apply stylesheet to application invoked with…
Browse files Browse the repository at this point in the history
… --desktop, because Filer otherwise crashes
  • Loading branch information
probonopd committed Oct 19, 2020
1 parent c35c54e commit 3bd2f1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions styleplugin/basestyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,14 @@ void BaseStyle::polish(QApplication* app)

app->setPalette(standardPalette());

// probono: For unkown reasons, 'filer-qt --desktop' crashes
// when we apply a stylesheet.
// FIXME: This is a very crude workaround, we need to find and fix the underlying issue!
if (app->arguments().contains("--desktop")) {
qDebug("probono: FIXME: Crude workaround: Do not apply stylesheet to application invoked with --desktop");
return;
}

// probono: Use ~/.config/stylesheet.qss or /etc/xdg/tylesheet.qss if exists
QString qsspath;
qsspath = QStandardPaths::locate(QStandardPaths::ConfigLocation, QStringLiteral("stylesheet.qss"), QStandardPaths::LocateFile);
Expand Down

0 comments on commit 3bd2f1b

Please sign in to comment.