diff --git a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp index 65f278a7..0acc6843 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp +++ b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp @@ -167,7 +167,7 @@ END_WINDOW_MAP() RECT WindowsDlg::_lastKnownLocation; -WindowsDlg::WindowsDlg() : MyBaseClass(WindowsDlgMap) +WindowsDlg::WindowsDlg() : MyBaseClass(WindowsDlgMap), _isSorted(false) { _szMinButton = SIZEZERO; _szMinListCtrl = SIZEZERO; @@ -218,6 +218,8 @@ BOOL CALLBACK WindowsDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam case IDC_WINDOWS_SORT: doSortToTabs(); + _isSorted = false; + updateButtonState(); break; default : @@ -318,6 +320,8 @@ BOOL CALLBACK WindowsDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam for (i=0; i _idxMap; int _lastSort; + bool _isSorted; TiXmlNode *_dlgNode; private: