Skip to content

Commit

Permalink
Merge pull request ninja-ide#125 from yprez/master
Browse files Browse the repository at this point in the history
Files ordering after addition
  • Loading branch information
diegosarmentero committed Dec 27, 2011
2 parents 618fa01 + 9608cdf commit bc6cb59
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ninja_ide/gui/explorer/tree_projects_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ def _add_new_file(self):
subitem = ProjectItem(item, name, pathForFile)
subitem.setToolTip(0, name)
subitem.setIcon(0, self._get_file_icon(name))
item.sortChildren(0, Qt.AscendingOrder)
mainContainer = main_container.MainContainer()
mainContainer.open_file(fileName)
editorWidget = mainContainer.get_actual_editor()
Expand All @@ -336,7 +335,6 @@ def add_existing_file(self, path):
subitem = ProjectItem(itemParent, name, file_manager.get_folder(path))
subitem.setToolTip(0, name)
subitem.setIcon(0, self._get_file_icon(name))
itemParent.sortChildren(0, Qt.AscendingOrder)
itemParent.setExpanded(True)

def _add_new_folder(self):
Expand All @@ -356,7 +354,6 @@ def _add_new_folder(self):
subitem = ProjectItem(item, name, pathForFolder)
subitem.setToolTip(0, name)
subitem.setIcon(0, QIcon(resources.IMAGES['tree-folder']))
item.sortChildren(0, Qt.AscendingOrder)

def _delete_file(self):
item = self.currentItem()
Expand Down Expand Up @@ -409,7 +406,6 @@ def _rename_file(self):
subitem.setIcon(0, self._get_file_icon(name))
index = item.parent().indexOfChild(item)
subitem.parent().takeChild(index)
subitem.parent().sortChildren(0, Qt.AscendingOrder)
except file_manager.NinjaFileExistsException, ex:
QMessageBox.information(self, self.tr("File Already Exists"),
self.tr("Invalid Path: the file '%s' already exists." % \
Expand Down

0 comments on commit bc6cb59

Please sign in to comment.