MainApplication: Load private.css style from theme in private browsing

Closes #2575
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent d20d491e52
commit 723aee6a33
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 4
      src/lib/app/mainapplication.cpp

@ -1016,6 +1016,10 @@ void MainApplication::loadTheme(const QString &name)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/rtl.css")));
}
if (isPrivate()) {
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/private.css")));
}
qss.append(QzTools::readAllFileContents(DataPaths::currentProfilePath() + QL1S("/userChrome.css")));
QString relativePath = QDir::current().relativeFilePath(activeThemePath);

Loading…
Cancel
Save