diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-02 14:01:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-02 14:01:28 +0300 |
commit | 0101f3715378644307115e136570959d3d4be3c9 (patch) | |
tree | 254ed566786db5ca701c0e76d05741f9657af480 /src/gui/shortcutwindow.cpp | |
parent | 6c9fc2ac3805c3f5dc71f454cec72e434bec1763 (diff) | |
download | manaverse-0101f3715378644307115e136570959d3d4be3c9.tar.gz manaverse-0101f3715378644307115e136570959d3d4be3c9.tar.bz2 manaverse-0101f3715378644307115e136570959d3d4be3c9.tar.xz manaverse-0101f3715378644307115e136570959d3d4be3c9.zip |
Fix resize issue in shortcuts windows in software drawing mode.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 28dcdd07e..762a00c8f 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -158,6 +158,7 @@ void ShortcutWindow::addTab(std::string name, ShortcutContainer *const content) content->setWidget2(this); Tab *const tab = new ShortcutTab(this, name, content); mTabs->addTab(tab, scroll); + mPages.push_back(content); } int ShortcutWindow::getTabIndex() const @@ -222,4 +223,9 @@ void ShortcutWindow::widgetMoved(const gcn::Event& event) Window::widgetMoved(event); if (mItems) mItems->setRedraw(true); + for (std::vector<ShortcutContainer*>::iterator it = mPages.begin(), + it_end = mPages.end(); it != it_end; ++ it) + { + (*it)->setRedraw(true); + } } |