summaryrefslogtreecommitdiff
path: root/user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2017-10-12 20:54:36 +0000
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2017-10-12 20:54:36 +0000
commitc75e4e0576fa24557efa0ef018646bf3dc51019b (patch)
tree5a9ea38db9e1640b53666b3b5e11f742b562b0be /user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch
parentf2e73738e51fd71115eef26ebaf6adc12fe99548 (diff)
downloadpackages-c75e4e0576fa24557efa0ef018646bf3dc51019b.tar.gz
packages-c75e4e0576fa24557efa0ef018646bf3dc51019b.tar.bz2
packages-c75e4e0576fa24557efa0ef018646bf3dc51019b.tar.xz
packages-c75e4e0576fa24557efa0ef018646bf3dc51019b.zip
user/pcmanfm-qt: new package
Diffstat (limited to 'user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch')
-rw-r--r--user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch b/user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch
new file mode 100644
index 000000000..b52ce1a9f
--- /dev/null
+++ b/user/pcmanfm-qt/pcmanfm-qt-0.11.3-const-iterator-fixes.patch
@@ -0,0 +1,26 @@
+diff -Nurd pcmanfm-qt-0.11.3/pcmanfm/mainwindow.cpp pcmanfm-qt-0.11.3.new/pcmanfm/mainwindow.cpp
+--- pcmanfm-qt-0.11.3/pcmanfm/mainwindow.cpp 2017-01-14 02:13:45.000000000 +0000
++++ pcmanfm-qt-0.11.3.new/pcmanfm/mainwindow.cpp 2017-10-12 20:44:25.731044585 +0000
+@@ -970,8 +970,8 @@
+ void MainWindow::onBookmarksChanged(FmBookmarks* bookmarks, MainWindow* pThis) {
+ // delete existing items
+ QList<QAction*> actions = pThis->ui.menu_Bookmarks->actions();
+- QList<QAction*>::const_iterator it = actions.begin();
+- QList<QAction*>::const_iterator last_it = actions.end() - 2;
++ QList<QAction*>::const_iterator it = actions.constBegin();
++ QList<QAction*>::const_iterator last_it = actions.constEnd() - 2;
+
+ while(it != last_it) {
+ QAction* action = *it;
+diff -Nurd pcmanfm-qt-0.11.3/pcmanfm/preferencesdialog.cpp pcmanfm-qt-0.11.3.new/pcmanfm/preferencesdialog.cpp
+--- pcmanfm-qt-0.11.3/pcmanfm/preferencesdialog.cpp 2017-01-14 02:13:45.000000000 +0000
++++ pcmanfm-qt-0.11.3.new/pcmanfm/preferencesdialog.cpp 2017-10-12 20:45:17.324377059 +0000
+@@ -90,7 +90,7 @@
+
+ iconThemes.remove("hicolor"); // remove hicolor, which is only a fallback
+ QHash<QString, QString>::const_iterator it;
+- for(it = iconThemes.begin(); it != iconThemes.end(); ++it) {
++ for(it = iconThemes.constBegin(); it != iconThemes.constEnd(); ++it) {
+ ui.iconTheme->addItem(it.value(), it.key());
+ }
+ ui.iconTheme->model()->sort(0); // sort the list of icon theme names