diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-20 15:11:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-20 15:11:20 +0000 |
commit | edf08d329842d4e7e7068c52f5cc74834a608cac (patch) | |
tree | 6484185d1eb844ccd1c993e7fae9b99eb55cff94 /plugins/TabSRMM/src/themes.cpp | |
parent | 270a21131e48439a96265a38a32e793a9d5f1938 (diff) |
more old exception code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5761 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/themes.cpp')
-rw-r--r-- | plugins/TabSRMM/src/themes.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp index 823fa43b0e..2b2558e243 100644 --- a/plugins/TabSRMM/src/themes.cpp +++ b/plugins/TabSRMM/src/themes.cpp @@ -1142,18 +1142,17 @@ void CSkin::UnloadAeroTabs() void CSkin::Unload()
{
- int i;
- CImageItem *tmp = m_ImageItems, *nextItem = 0;
+ // do nothing when user decides to not close any window
+ if (warnToClose() == false)
+ return;
/*
* delete all image items
*/
- if (warnToClose() == false)
- return; // do nothing when user decides to not close any window
-
m_skinEnabled = m_frameSkins = false;
+ CImageItem *tmp = m_ImageItems, *nextItem;
while(tmp) {
nextItem = tmp->getNextItem();
delete tmp;
@@ -1181,7 +1180,7 @@ void CSkin::Unload() m_SkinDarkShadowPen = 0;
if (m_SkinItems) {
- for (i=0; i < ID_EXTBK_LAST; i++) {
+ for (int i=0; i < ID_EXTBK_LAST; i++) {
m_SkinItems[i].IGNORED = 1;
m_SkinItems[i].imageItem = 0;
}
@@ -1214,7 +1213,7 @@ void CSkin::Unload() m_closeIcon = m_maxIcon = m_minIcon = 0;
- for (i=0; i < m_nrSkinIcons; i++)
+ for (int i=0; i < m_nrSkinIcons; i++)
if (m_skinIcons[i].phIcon )
::DestroyIcon(*(m_skinIcons[i].phIcon));
mir_free(m_skinIcons);
|