Cppcheck warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-06 10:29:38 +02:00
parent 0024543764
commit 753e9c76f5
2 changed files with 3 additions and 6 deletions

View file

@ -155,8 +155,7 @@ void TapePreferencesPathPage::EditPath()
{ {
if (usedNotExistedDir) if (usedNotExistedDir)
{ {
QDir directory(path); QDir(path).rmpath(QChar('.'));
directory.rmpath(QChar('.'));
} }
DefaultPath(); DefaultPath();

View file

@ -178,8 +178,7 @@ void PreferencesPathPage::EditPath()
{ {
if (usedNotExistedDir) if (usedNotExistedDir)
{ {
QDir directory(path); QDir(path).rmpath(QChar('.'));
directory.rmpath(QChar('.'));
} }
DefaultPath(); DefaultPath();
return; return;
@ -190,8 +189,7 @@ void PreferencesPathPage::EditPath()
if (usedNotExistedDir) if (usedNotExistedDir)
{ {
QDir directory(path); QDir(path).rmpath(QChar('.'));
directory.rmpath(QChar('.'));
} }
} }