Beautified the settings dialog

Double-clicking a folder in the behaves like open folder


FossilOrigin-Name: 8a4fbbb14628b2dc53b8d46a35a3b4f43182db9c
This commit is contained in:
kostas
2011-10-20 15:36:18 +00:00
parent 15e3cabf23
commit 6ccae8f206
5 changed files with 230 additions and 121 deletions

View File

@ -1832,6 +1832,12 @@ void MainWindow::on_actionOpenFolder_triggered()
return;
QModelIndex index = selection.indexes().at(0);
on_treeView_doubleClicked(index);
}
//------------------------------------------------------------------------------
void MainWindow::on_treeView_doubleClicked(const QModelIndex &index)
{
QString target = repoDirModel.data(index, REPODIRMODEL_ROLE_PATH).toString();
target = getCurrentWorkspace() + PATH_SEP + target;
@ -2003,4 +2009,3 @@ _exit:
refresh();
}