Commit 0d31a22e authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Use static QFileInfo::exists method

parent 44a6c489
...@@ -250,7 +250,7 @@ void GotoSymbolWidget::showGlobalSymbols(const QString &tagFilePath) ...@@ -250,7 +250,7 @@ void GotoSymbolWidget::showGlobalSymbols(const QString &tagFilePath)
void GotoSymbolWidget::loadGlobalSymbols(const QString &text) void GotoSymbolWidget::loadGlobalSymbols(const QString &text)
{ {
if (m_tagFile.isEmpty() || !QFileInfo(m_tagFile).exists() || !QFileInfo(m_tagFile).isFile()) { if (m_tagFile.isEmpty() || !QFileInfo::exists(m_tagFile) || !QFileInfo(m_tagFile).isFile()) {
Tags::TagEntry e(i18n("Tags file not found. Please generate one manually or using the CTags plugin"), QString(), QString(), QString()); Tags::TagEntry e(i18n("Tags file not found. Please generate one manually or using the CTags plugin"), QString(), QString(), QString());
m_globalSymbolsModel->setSymbolsData({e}); m_globalSymbolsModel->setSymbolsData({e});
return; return;
......
...@@ -43,7 +43,7 @@ UrlInserter::UrlInserter(const QUrl &startUrl, QWidget *parent) ...@@ -43,7 +43,7 @@ UrlInserter::UrlInserter(const QUrl &startUrl, QWidget *parent)
void UrlInserter::insertFolder() void UrlInserter::insertFolder()
{ {
QUrl startUrl; QUrl startUrl;
if (QFileInfo(m_lineEdit->text()).exists()) { if (QFileInfo::exists(m_lineEdit->text())) {
startUrl.setPath(m_lineEdit->text()); startUrl.setPath(m_lineEdit->text());
} else { } else {
startUrl = m_startUrl; startUrl = m_startUrl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment