summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-20 14:19:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-20 14:19:58 +0300
commitb4eae25edc2b75af41fdb98c4d0a332ee3dcf500 (patch)
treed87c8c6be82d59d255c74d81c854b11009db4d1e /src/gui
parent94c6917b023ca436dfbff49e33d84f9d45cdbbc3 (diff)
downloadmv-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.gz
mv-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.bz2
mv-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.xz
mv-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.zip
Fix adding links top browserbox at top.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/browserbox.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index cf2a9ea88..2c8f64a02 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -145,7 +145,10 @@ void BrowserBox::addRow(const std::string &row, bool atTop)
bLink.x1 = font->getWidth(tmp2) - 1;
bLink.x2 = bLink.x1 + font->getWidth(bLink.caption) + 1;
- mLinks.push_back(bLink);
+ if (atTop)
+ mLinks.insert(mLinks.begin(), bLink);
+ else
+ mLinks.push_back(bLink);
linksCount ++;
newRow += "##<" + bLink.caption;