Skip to content

Commit

Permalink
Fix When importing a gns3a the correct qemu binary is not selected
Browse files Browse the repository at this point in the history
Fix #1556
  • Loading branch information
julien-duponchelle committed Oct 3, 2016
1 parent 1a55487 commit ec3a856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gns3/dialogs/appliance_wizard.py
Expand Up @@ -372,6 +372,10 @@ def _getQemuBinariesFromServerCallback(self, result, error=False, **kwargs):
self.uiQemuListComboBox.addItem("{path}".format(path=qemu["path"]), qemu["path"])
if self.uiQemuListComboBox.count() == 1:
self.next()
else:
i = self.uiQemuListComboBox.findText(self._appliance["qemu"]["arch"], QtCore.Qt.MatchContains)
if i != -1:
self.uiQemuListComboBox.setCurrentIndex(i)

def _install(self, version):
"""
Expand Down

0 comments on commit ec3a856

Please sign in to comment.