40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
diff -Nuar virt-manager-0.5.3.orig/src/virtManager/engine.py virt-manager-0.5.3/src/virtManager/engine.py
|
|
--- virt-manager-0.5.3.orig/src/virtManager/engine.py 2008-02-03 17:05:01.000000000 -0700
|
|
+++ virt-manager-0.5.3/src/virtManager/engine.py 2008-02-03 17:05:23.000000000 -0700
|
|
@@ -34,7 +34,7 @@
|
|
from virtManager.details import vmmDetails
|
|
from virtManager.console import vmmConsole
|
|
from virtManager.asyncjob import vmmAsyncJob
|
|
-from virtManager.create import vmmCreate
|
|
+from vminstall.gtk.interface import VMCreate as vmmCreate
|
|
from virtManager.serialcon import vmmSerialConsole
|
|
from virtManager.host import vmmHost
|
|
from virtManager.error import vmmErrorDialog
|
|
@@ -52,7 +52,7 @@
|
|
self.windowConnect = None
|
|
self.windowPreferences = None
|
|
self.windowAbout = None
|
|
- self.windowCreate = None
|
|
+ self.windowCreate = {}
|
|
self.windowManager = None
|
|
self.connections = {}
|
|
|
|
@@ -311,10 +311,15 @@
|
|
con = self.get_connection(uri)
|
|
|
|
if self.connections[uri]["windowCreate"] == None:
|
|
- create = vmmCreate(self.get_config(), con)
|
|
+ key = 0
|
|
+ while self.windowCreate.has_key( key ):
|
|
+ key += 1
|
|
+ create = vmmCreate(virtman=True, key=key)
|
|
+ self.windowCreate[key] = create
|
|
create.connect("action-show-console", self._do_show_console)
|
|
create.connect("action-show-terminal", self._do_show_terminal)
|
|
- create.connect("action-show-help", self._do_show_help)
|
|
+ # make sure the help matches before showing it
|
|
+ # create.connect("action-show-help", self._do_show_help)
|
|
self.connections[uri]["windowCreate"] = create
|
|
self.connections[uri]["windowCreate"].show()
|
|
|