From e26a9a25d510a38a6f7ffdfa92d3bc801f2f11c3 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 3 Apr 2020 19:23:32 +0530 Subject: [PATCH] Fixed compilation warnings while building pgAdmin. Fixes #5351 --- docs/en_US/release_notes_4_21.rst | 3 ++- runtime/Server.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/en_US/release_notes_4_21.rst b/docs/en_US/release_notes_4_21.rst index 4b625e6c9..619f249ec 100644 --- a/docs/en_US/release_notes_4_21.rst +++ b/docs/en_US/release_notes_4_21.rst @@ -22,4 +22,5 @@ Bug fixes | `Issue #3645 `_ - Ensure that the start and end date should be deleted when clear the selection for pgAgent Job. | `Issue #5180 `_ - Fixed an issue where the autovacuum_enabled parameter is added automatically in the RE-SQL when the table has been created using the WITH clause. | `Issue #5268 `_ - Fixed generated SQL when any token in FTS Configuration or any option in FTS Dictionary is changed. -| `Issue #5314 `_ - Ensure that switch cell is in sync with switch control for accessibility. \ No newline at end of file +| `Issue #5314 `_ - Ensure that switch cell is in sync with switch control for accessibility. +| `Issue #5351 `_ - Fixed compilation warnings while building pgAdmin. \ No newline at end of file diff --git a/runtime/Server.cpp b/runtime/Server.cpp index b8e924ae0..9c2a3e3d3 100644 --- a/runtime/Server.cpp +++ b/runtime/Server.cpp @@ -303,9 +303,9 @@ bool Server::Init() QDir dir; if (paths[i].startsWith('/')) - dir = paths[i]; + dir.setPath(paths[i]); else - dir = QCoreApplication::applicationDirPath() + "/" + paths[i]; + dir.setPath(QCoreApplication::applicationDirPath() + "/" + paths[i]); m_appfile = dir.canonicalPath() + "/pgAdmin4.py";