From ec0f1a8dcdc8862cbf22bdd13f5a109236e1cee1 Mon Sep 17 00:00:00 2001 From: Vitaly Slobodin Date: Fri, 10 Jan 2020 17:05:35 +0300 Subject: [PATCH] Remove QString::null deprecation warnings --- src/webpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpage.cpp b/src/webpage.cpp index b0fa9cbe9..3bc6e45ea 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -140,7 +140,7 @@ public slots: // Check if User set a file via File Picker QString chosenFile = m_webPage->filePicker(oldFile); - if (chosenFile == QString::null && m_uploadFiles.count() > 0) { + if (chosenFile.isNull() && m_uploadFiles.count() > 0) { // Check if instead User set a file via uploadFile API chosenFile = m_uploadFiles.first(); } @@ -785,7 +785,7 @@ QString WebPage::filePicker(const QString& oldFile) } } } - return QString::null; + return QString(); } bool WebPage::javaScriptConfirm(const QString& msg)