Fall back to "ubuntu-mobile" icon theme if $UBUNTU_ICON_THEME is unset.
Approved by PS Jenkins bot, Michael Zanetti, Sebastien Bacher.
commitcff7a466463bcef13780c998d3c27422e3f79e52
authorLars Uebernickel <lars.uebernickel@canonical.com>
dateTue 3 Sep 2013, 23:01 (13 years ago)
parent948263b9e55a7c
main.cpp+3−2
@@ -65,9 +65,10 @@ void appendImportPaths(QQmlEngine *engine, const QStringList &paths)
6565
6666void resolveIconTheme() {
6767 const char *ubuntuIconTheme = getenv("UBUNTU_ICON_THEME");
68− if (ubuntuIconTheme != NULL) {
69− QIcon::setThemeName(ubuntuIconTheme);
68+ if (ubuntuIconTheme == NULL) {
69+ ubuntuIconTheme = "ubuntu-mobile";
7070 }
71+ QIcon::setThemeName(ubuntuIconTheme);
7172}
7273} // namespace {
7374