Tape create .lock file for wrong file path.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-04 02:58:39 +02:00
parent 454f23a399
commit 019b3dc38b

View File

@ -229,7 +229,7 @@ bool TMainWindow::LoadFile(const QString &path)
} }
} }
VlpCreateLock(lock, QFileInfo(path).fileName()); VlpCreateLock(lock, path);
if (not lock->IsLocked()) if (not lock->IsLocked())
{ {
@ -1191,7 +1191,7 @@ void TMainWindow::ImportFromPattern()
return; return;
} }
VLockGuard<char> tmp(QFileInfo(mPath).fileName()); VLockGuard<char> tmp(mPath);
if (not tmp.IsLocked()) if (not tmp.IsLocked())
{ {
qCCritical(tMainWindow, "%s", qUtf8Printable(tr("This file already opened in another window."))); qCCritical(tMainWindow, "%s", qUtf8Printable(tr("This file already opened in another window.")));
@ -2645,7 +2645,7 @@ bool TMainWindow::LoadFromExistingFile(const QString &path)
} }
} }
VlpCreateLock(lock, QFileInfo(path).fileName()); VlpCreateLock(lock, path);
if (not lock->IsLocked()) if (not lock->IsLocked())
{ {