Fix crash in wine (it not works.)

It was sending the notify early, and we didn't have tabs set up yet.
Fixes #4173, at least for the current wine-1.6 Ubuntu packages.
This commit is contained in:
Unknown W. Brackets 2013-10-25 23:48:54 -07:00
parent 4cc6171cf9
commit b06fdfeb02

View file

@ -16,11 +16,16 @@ public:
void ShowTab(HWND pageHandle);
void NextTab(bool cycle);
void PreviousTab(bool cycle);
int CurrentTabIndex() { return currentTab; };
HWND CurrentTabHandle() { return tabs[currentTab].pageHandle; };
int CurrentTabIndex() { return currentTab; }
HWND CurrentTabHandle() {
if (currentTab < 0 || currentTab >= (int)tabs.size()) {
return NULL;
}
return tabs[currentTab].pageHandle;
}
void SetShowTabTitles(bool enabled);
void SetIgnoreBottomMargin(bool enabled) { ignoreBottomMargin = enabled; };
bool GetShowTabTitles() { return showTabTitles; };
void SetIgnoreBottomMargin(bool enabled) { ignoreBottomMargin = enabled; }
bool GetShowTabTitles() { return showTabTitles; }
void SetMinTabWidth(int w);
private: