aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-12-30 06:30:21 +0100
committerGravatar Szymon Tomasz Stefanek2015-12-30 06:30:21 +0100
commitdff495d0e88c16fbe593f8bed2132946e63d165a (patch)
treef79e24de145f9822076a15c1cd17091ddd4de3f0
parentadd favoriteoff icon for new favorite server dialog. (diff)
downloadKVIrc-dff495d0e88c16fbe593f8bed2132946e63d165a.tar.gz
KVIrc-dff495d0e88c16fbe593f8bed2132946e63d165a.tar.bz2
KVIrc-dff495d0e88c16fbe593f8bed2132946e63d165a.zip
Fix favorites filter icon in servers dialog
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/kvirc/kernel/KviIconManager.cpp4
-rw-r--r--src/modules/options/OptionsWidget_servers.cpp7
3 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba31958b7..ff1d448d6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,6 @@
# GLOBAL DEFS
###############################################################################
-
# Minimum cmake version
cmake_minimum_required(VERSION 3.1.0)
diff --git a/src/kvirc/kernel/KviIconManager.cpp b/src/kvirc/kernel/KviIconManager.cpp
index d9d4a6657..11b95fa86 100644
--- a/src/kvirc/kernel/KviIconManager.cpp
+++ b/src/kvirc/kernel/KviIconManager.cpp
@@ -417,8 +417,8 @@ static const char * g_szIconNames[KviIconManager::IconCount] =
"facepalm", // 331
"identity", // 332
"nickpopup", // 333
- "tools" // 334
- "favoriteOff" // 335
+ "tools", // 334
+ "favoriteoff" // 335
};
diff --git a/src/modules/options/OptionsWidget_servers.cpp b/src/modules/options/OptionsWidget_servers.cpp
index c70f64972..4094e0c6b 100644
--- a/src/modules/options/OptionsWidget_servers.cpp
+++ b/src/modules/options/OptionsWidget_servers.cpp
@@ -1271,7 +1271,7 @@ OptionsWidget_servers::OptionsWidget_servers(QWidget * parent)
addWidgetToLayout(m_pFilterEdit,1,0,1,0);
m_pShowFavoritesOnlyButton = new QToolButton(this);
- m_pShowFavoritesOnlyButton->setIcon(*(g_pIconManager->getSmallIcon(KviIconManager::Favorite)));
+ m_pShowFavoritesOnlyButton->setIcon(*(g_pIconManager->getSmallIcon(KviIconManager::FavoriteOff)));
m_pShowFavoritesOnlyButton->setCheckable(true);
m_pShowFavoritesOnlyButton->setChecked(KVI_OPTION_BOOL(KviOption_boolShowFavoriteServersOnly));
KviTalToolTip::add(m_pShowFavoritesOnlyButton,__tr2qs_ctx("<center>If this option is enabled, only servers you have favorited will be displayed</center>","options"));
@@ -2034,6 +2034,11 @@ void OptionsWidget_servers::updateFavoritesFilter(bool bSet)
}
network->setHidden(!uServers);
}
+
+ m_pShowFavoritesOnlyButton->setIcon(
+ *(g_pIconManager->getSmallIcon(bSet ? KviIconManager::Favorite : KviIconManager::FavoriteOff))
+ );
+
}
void OptionsWidget_servers::copyServer()