summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/widgets/dialogs/qsidebar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/dialogs/qsidebar.cpp b/src/widgets/dialogs/qsidebar.cpp
index f5157931cb..bf7d61d053 100644
--- a/src/widgets/dialogs/qsidebar.cpp
+++ b/src/widgets/dialogs/qsidebar.cpp
@@ -247,10 +247,11 @@ void QUrlModel::addUrls(const QList<QUrl> &list, int row, bool move)
for (int j = 0; move && j < rowCount(); ++j) {
QString local = index(j, 0).data(UrlRole).toUrl().toLocalFile();
#if defined(Q_OS_WIN)
- if (index(j, 0).data(UrlRole).toUrl().toLocalFile().toLower() == cleanUrl.toLower()) {
+ const Qt::CaseSensitivity cs = Qt::CaseInsensitive;
#else
- if (index(j, 0).data(UrlRole).toUrl().toLocalFile() == cleanUrl) {
+ const Qt::CaseSensitivity cs = Qt::CaseSensitive;
#endif
+ if (!cleanUrl.compare(local, cs)) {
removeRow(j);
if (j <= row)
row--;