From 2c0dccd7648427a5110d8dc39aec346a4b329e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 7 Oct 2021 22:28:30 +0200 Subject: [PATCH] Use constructor explicitly --- YACReaderLibrary/library_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 1ef0b382..2af31787 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -2377,7 +2377,7 @@ void LibraryWindow::asignNumbers() void LibraryWindow::openContainingFolderComic() { QModelIndex modelIndex = comicsViewsManager->comicsView->currentIndex(); - QFileInfo file = QDir::cleanPath(currentPath() + comicsModel->getComicPath(modelIndex)); + QFileInfo file(QDir::cleanPath(currentPath() + comicsModel->getComicPath(modelIndex))); #if defined Q_OS_UNIX && !defined Q_OS_MAC QString path = file.absolutePath(); QDesktopServices::openUrl(QUrl("file:///" + path, QUrl::TolerantMode));