Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
0d31a22e
Commit
0d31a22e
authored
Jan 29, 2021
by
Alexander Lohnau
💬
Browse files
Use static QFileInfo::exists method
parent
44a6c489
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/kate-ctags/gotosymbolwidget.cpp
View file @
0d31a22e
...
...
@@ -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
;
...
...
addons/katebuild-plugin/UrlInserter.cpp
View file @
0d31a22e
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment