summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2021-03-07 23:59:55 +0300
committerdartraiden <wowemuh@gmail.com>2021-03-07 23:59:55 +0300
commit0fde8f005aa961a6cf762717d6999d254c3f676e (patch)
tree22744a6fa7296f3476d18e081de4d63ecec5d2da
parent1cabb213f95399a6c179924d0a92dd4c8289486a (diff)
Remove redundant check (already checked above)
-rw-r--r--plugins/HistoryStats/src/dlgoption.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/HistoryStats/src/dlgoption.cpp b/plugins/HistoryStats/src/dlgoption.cpp
index 9a89cdf9c5..1c9de1fae4 100644
--- a/plugins/HistoryStats/src/dlgoption.cpp
+++ b/plugins/HistoryStats/src/dlgoption.cpp
@@ -174,14 +174,12 @@ void DlgOption::onRunStats()
void DlgOption::onBandClicked(HANDLE hButton, INT_PTR dwData)
{
if (dwData >= opFirstPage && dwData <= opLastPage && dwData != m_nCurPage) {
- if (m_nCurPage != dwData) {
if (m_nCurPage != -1) {
m_Band.checkButton(m_hPageButton[m_nCurPage], false);
m_pPage[m_nCurPage]->hide();
}
m_nCurPage = dwData;
- }
m_Band.checkButton(hButton, true);
m_pPage[m_nCurPage]->show();