Covered more cases with an error message when opening a repository failed. Fixes [6e08966e80]
FossilOrigin-Name: d2e3f8c14dafd2ba1b13b6d3b97e12acca400199
This commit is contained in:
@ -349,14 +349,20 @@ bool MainWindow::openWorkspace(const QString &path)
|
||||
else
|
||||
{
|
||||
if(!QDir(wkspace).exists())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not open repository."), QMessageBox::Ok );
|
||||
return false;
|
||||
}
|
||||
setCurrentWorkspace(wkspace);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!QDir(wkspace).exists())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not open repository."), QMessageBox::Ok );
|
||||
return false;
|
||||
}
|
||||
setCurrentWorkspace(wkspace);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user