Tape create .lock file for wrong file path.
--HG-- branch : develop
This commit is contained in:
parent
454f23a399
commit
019b3dc38b
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user