2009-08-01 11:46:10 +02:00
|
|
|
Index: virt-manager-0.8.0/src/virtManager/engine.py
|
|
|
|
===================================================================
|
|
|
|
--- virt-manager-0.8.0.orig/src/virtManager/engine.py
|
|
|
|
+++ virt-manager-0.8.0/src/virtManager/engine.py
|
|
|
|
@@ -37,7 +37,8 @@ from virtManager.preferences import vmmP
|
2009-05-04 18:36:17 +02:00
|
|
|
from virtManager.manager import vmmManager
|
2008-02-04 17:42:11 +01:00
|
|
|
from virtManager.details import vmmDetails
|
|
|
|
from virtManager.asyncjob import vmmAsyncJob
|
|
|
|
-from virtManager.create import vmmCreate
|
2009-05-04 18:36:17 +02:00
|
|
|
+#from virtManager.create import vmmCreate
|
2008-02-04 17:42:11 +01:00
|
|
|
+from vminstall.gtk.interface import VMCreate as vmmCreate
|
|
|
|
from virtManager.host import vmmHost
|
|
|
|
from virtManager.error import vmmErrorDialog
|
2009-08-01 11:46:10 +02:00
|
|
|
from virtManager.systray import vmmSystray
|
2009-09-27 00:17:48 +02:00
|
|
|
@@ -390,13 +391,24 @@ class vmmEngine(gobject.GObject):
|
2009-05-04 18:36:17 +02:00
|
|
|
return False
|
|
|
|
return True
|
2008-02-04 17:42:11 +01:00
|
|
|
|
2008-04-12 21:33:47 +02:00
|
|
|
+ def _vmmcreate_closing(self,signal,key):
|
2009-05-04 18:36:17 +02:00
|
|
|
+ self.windowCreate = None
|
|
|
|
+
|
|
|
|
def show_create(self, uri):
|
|
|
|
if self.windowCreate == None:
|
|
|
|
- create = vmmCreate(self.get_config(), self)
|
2008-04-12 21:33:47 +02:00
|
|
|
+ create = vmmCreate(virtman=True,key=0)
|
2008-02-04 17:42:11 +01:00
|
|
|
create.connect("action-show-console", self._do_show_console)
|
|
|
|
- create.connect("action-show-help", self._do_show_help)
|
2008-04-12 21:33:47 +02:00
|
|
|
+ create.connect("vmmcreate-closing", self._vmmcreate_closing)
|
2009-05-04 18:36:17 +02:00
|
|
|
self.windowCreate = create
|
|
|
|
- self.windowCreate.show(uri)
|
2008-04-12 21:33:47 +02:00
|
|
|
+ self.windowCreate.show()
|
|
|
|
+ else:
|
|
|
|
+ message_box = gtk.MessageDialog(None,
|
2009-05-04 18:36:17 +02:00
|
|
|
+ gtk.DIALOG_MODAL,
|
|
|
|
+ gtk.MESSAGE_WARNING,
|
|
|
|
+ gtk.BUTTONS_OK,
|
|
|
|
+ _("A new installation is already in progress.\n\nUse the YaST \"Create Virtual Machines\" utility for concurrent installations."))
|
2008-04-12 21:33:47 +02:00
|
|
|
+ message_box.run()
|
|
|
|
+ message_box.destroy()
|
2008-02-04 17:42:11 +01:00
|
|
|
|
2009-05-04 18:36:17 +02:00
|
|
|
def add_connection(self, uri, readOnly=None, autoconnect=False):
|
2009-08-01 11:46:10 +02:00
|
|
|
conn = vmmConnection(self.get_config(), uri, readOnly,
|