summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp6
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);
+ }
}