From 893df09e96b820805f1f57e95df7d5f191471833 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Mon, 27 Aug 2012 13:48:56 -0400 Subject: [PATCH] Fixed indentation, removed unused variable added Change-Id: Idec3f5312c5dbb0910f9a00daffcf4d74f6e8fa1 --- libavogadro/src/extensions/insertfragmentdialog.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libavogadro/src/extensions/insertfragmentdialog.cpp b/libavogadro/src/extensions/insertfragmentdialog.cpp index 803aadd0f..31058b4fb 100644 --- a/libavogadro/src/extensions/insertfragmentdialog.cpp +++ b/libavogadro/src/extensions/insertfragmentdialog.cpp @@ -99,13 +99,13 @@ namespace Avogadro { if (!dir.exists() || !dir.isReadable() ) { qWarning() << "Cannot find the directory: " << m_directory; - // Can't really do anything! - ui.directoryTreeView->setEnabled(false); - ui.insertFragmentButton->setEnabled(false); - ui.filterLineEdit->setEnabled(false); - ui.clearToolButton->setEnabled(false); + // Can't really do anything! + ui.directoryTreeView->setEnabled(false); + ui.insertFragmentButton->setEnabled(false); + ui.filterLineEdit->setEnabled(false); + ui.clearToolButton->setEnabled(false); - return; + return; } d->model = new QFileSystemModel(this); @@ -177,7 +177,6 @@ namespace Avogadro { if (fileInfo.isDir()) return d->fragment; // return an empty fragment and do nothing - OBMol obfragment; Molecule *mol; if (d->crystalFiles) { // No bonding, at first