From 1da0983c42a1ccd8034d411b87694753b5f9e9e6 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 21 Mar 2018 15:30:51 +0100 Subject: [PATCH] Fix compilation with -DQT_NO_URL_CAST_FROM_STRING --- src/CMakeLists.txt | 1 - src/trash/dolphintrash.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b70370035..263b3ff0cb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,7 +11,6 @@ add_definitions( ) remove_definitions( -DQT_NO_CAST_FROM_BYTEARRAY - -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 8157094401..749d0d4811 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -42,7 +42,7 @@ Trash::Trash() }; connect(m_trashDirLister, static_cast(&KDirLister::completed), this, trashDirContentChanged); connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); - m_trashDirLister->openUrl(QStringLiteral("trash:/")); + m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); } Trash::~Trash()