Skip to content

Commit

Permalink
Qt5: 'QString QFileInfo::readLink() const' is deprecated: Use QFileIn…
Browse files Browse the repository at this point in the history
…fo::symLinkTarget() instead [-Wdeprecated-declarations]
  • Loading branch information
wwmayer committed Jun 12, 2020
1 parent 3cbec19 commit 6c80d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/MainWindow.cpp
Expand Up @@ -1810,7 +1810,7 @@ void MainWindow::loadUrls(App::Document* doc, const QList<QUrl>& url)
QFileInfo info((*it).toLocalFile());
if (info.exists() && info.isFile()) {
if (info.isSymLink())
info.setFile(info.readLink());
info.setFile(info.symLinkTarget());
std::vector<std::string> module = App::GetApplication()
.getImportModules(info.completeSuffix().toLatin1());
if (module.empty()) {
Expand Down

0 comments on commit 6c80d8d

Please sign in to comment.