Use CustomMessageBox::selectable
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
02ca6bea8c
commit
da007d6212
4 changed files with 15 additions and 17 deletions
|
@ -389,11 +389,7 @@ void BaseInstance::setName(QString val)
|
|||
bool BaseInstance::syncInstanceDirName(const QString& newRoot) const
|
||||
{
|
||||
auto oldRoot = instanceRoot();
|
||||
if (oldRoot == newRoot)
|
||||
return true;
|
||||
if (!QFile::rename(oldRoot, newRoot))
|
||||
return false;
|
||||
return true;
|
||||
return oldRoot == newRoot || QFile::rename(oldRoot, newRoot);
|
||||
}
|
||||
|
||||
QString BaseInstance::name() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue