summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-02 14:01:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-02 14:01:28 +0300
commit0101f3715378644307115e136570959d3d4be3c9 (patch)
tree254ed566786db5ca701c0e76d05741f9657af480 /src/gui/shortcutwindow.cpp
parent6c9fc2ac3805c3f5dc71f454cec72e434bec1763 (diff)
downloadmv-0101f3715378644307115e136570959d3d4be3c9.tar.gz
mv-0101f3715378644307115e136570959d3d4be3c9.tar.bz2
mv-0101f3715378644307115e136570959d3d4be3c9.tar.xz
mv-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.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);
+ }
}