diff options
author | George Hazan <ghazan@miranda.im> | 2018-08-30 12:24:33 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-08-30 12:24:33 +0300 |
commit | 5e0f2f99192c6cc28e077800371bc0e25fb246de (patch) | |
tree | d34b5ff94ccd63bb13907c6985f1633d15ce24de /plugins/Clist_modern | |
parent | 5fe511b135c47c839889853c86afa2da985a56a6 (diff) |
minor code cleaning
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_clisttray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clisttray.cpp b/plugins/Clist_modern/src/modern_clisttray.cpp index e236e53743..071c807f36 100644 --- a/plugins/Clist_modern/src/modern_clisttray.cpp +++ b/plugins/Clist_modern/src/modern_clisttray.cpp @@ -80,7 +80,7 @@ INT_PTR CListTray_GetGlobalStatus(WPARAM, LPARAM) {
g_szConnectingProto = nullptr;
- int curstatus = 0;
+ int curstatus = ID_STATUS_OFFLINE;
int connectingCount = 0;
g_bMultiConnectionMode = false;
@@ -99,7 +99,7 @@ INT_PTR CListTray_GetGlobalStatus(WPARAM, LPARAM) curstatus = it->iRealStatus;
}
- return curstatus ? curstatus : ID_STATUS_OFFLINE;
+ return curstatus;
}
/////////////////////////////////////////////////////////////////////////////////////////
|