Covered more cases with an error message when opening a repository failed. Fixes [6e08966e80]

FossilOrigin-Name: d2e3f8c14dafd2ba1b13b6d3b97e12acca400199
This commit is contained in:
kostas
2015-04-09 11:46:34 +00:00
parent c1a3f78fd7
commit 2fb1d55af4
3 changed files with 13 additions and 7 deletions

View File

@ -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);
}