summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-05-14 14:19:22 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-05-14 14:19:22 (GMT)
commitd644a9a89ff4f7bf8866b69af5334ea1c696e4a7 (patch)
tree1c2d8a33d939de6a62a094a576ef88df10fe0935 /src
parent8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11 (diff)
downloadQt-d644a9a89ff4f7bf8866b69af5334ea1c696e4a7.zip
Qt-d644a9a89ff4f7bf8866b69af5334ea1c696e4a7.tar.gz
Qt-d644a9a89ff4f7bf8866b69af5334ea1c696e4a7.tar.bz2
Compile.
Need the proper types. Reviewed-by: Andy
Diffstat (limited to 'src')
-rw-r--r--src/gui/dialogs/qsidebar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qsidebar.cpp b/src/gui/dialogs/qsidebar.cpp
index 9abefdf..000a06b 100644
--- a/src/gui/dialogs/qsidebar.cpp
+++ b/src/gui/dialogs/qsidebar.cpp
@@ -251,7 +251,7 @@ void QUrlModel::addUrls(const QList<QUrl> &list, int row, bool move)
#if defined(Q_OS_WIN)
if (QDir::cleanPath(index(j, 0).data(UrlRole).toUrl().toLocalFile()).toLower() == QDir::cleanPath(url.toLocalFile()).toLower()) {
#else
- if (QDir::cleanPath(index(j, 0).data(UrlRole)) == QDir::cleanPath(url)) {
+ if (QDir::cleanPath(index(j, 0).data(UrlRole).toUrl().toLocalFile()) == QDir::cleanPath(url.toLocalFile())) {
#endif
removeRow(j);
if (j <= row)