git-svn-id: svn://db.shs.com.ru/libs@262 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -301,6 +301,8 @@ void ProjectFilesystemWidget::on_tree_doubleClicked(const QModelIndex & index) {
|
|||||||
void ProjectFilesystemWidget::on_tree_itemDoubleClicked(QTreeWidgetItem * item, int) {
|
void ProjectFilesystemWidget::on_tree_itemDoubleClicked(QTreeWidgetItem * item, int) {
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
QString afp = item->data(0, Qt::UserRole).toString();
|
QString afp = item->data(0, Qt::UserRole).toString();
|
||||||
|
bool dir = item->data(0, Qt::UserRole + 1).toBool();
|
||||||
|
if (dir) return;
|
||||||
if (afp.isEmpty()) return;
|
if (afp.isEmpty()) return;
|
||||||
Core::EditorManager::openEditor(afp);
|
Core::EditorManager::openEditor(afp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user