From 019b3dc38bdb404bcdfc580ff8a787369620e7fa Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Dec 2015 02:58:39 +0200 Subject: [PATCH] Tape create .lock file for wrong file path. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 8101bc34f..9f8a8d1cb 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -229,7 +229,7 @@ bool TMainWindow::LoadFile(const QString &path) } } - VlpCreateLock(lock, QFileInfo(path).fileName()); + VlpCreateLock(lock, path); if (not lock->IsLocked()) { @@ -1191,7 +1191,7 @@ void TMainWindow::ImportFromPattern() return; } - VLockGuard tmp(QFileInfo(mPath).fileName()); + VLockGuard tmp(mPath); if (not tmp.IsLocked()) { 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()) {