diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/shortcutwindow.h | 1 |
2 files changed, 7 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); + } } diff --git a/src/gui/shortcutwindow.h b/src/gui/shortcutwindow.h index c1bf26a38..428a71507 100644 --- a/src/gui/shortcutwindow.h +++ b/src/gui/shortcutwindow.h @@ -73,6 +73,7 @@ class ShortcutWindow final : public Window ScrollArea *mScrollArea; TabbedArea *mTabs; + std::vector<ShortcutContainer*> mPages; static int mBoxesWidth; }; |