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)
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());
m_globalSymbolsModel->setSymbolsData({e});
return;
......
......@@ -43,7 +43,7 @@ UrlInserter::UrlInserter(const QUrl &startUrl, QWidget *parent)
void UrlInserter::insertFolder()
{
QUrl startUrl;
if (QFileInfo(m_lineEdit->text()).exists()) {
if (QFileInfo::exists(m_lineEdit->text())) {
startUrl.setPath(m_lineEdit->text());
} else {
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