Index: libs/libmyth/schemawizard.cpp
===================================================================
--- libs/libmyth/schemawizard.cpp	(revision 18188)
+++ libs/libmyth/schemawizard.cpp	(working copy)
@@ -1,18 +1,20 @@
 #include <unistd.h>      // for isatty() on Windows
 
-#include "dialogbox.h"
 #include "langsettings.h"
 #include "mythcontext.h"
 #include "schemawizard.h"
 #include "util.h"
 
 #include "libmythdb/mythtimer.h"
+#include "libmythui/mythdialogbox.h"
 #include "libmythui/mythmainwindow.h"
+#include "libmythui/myththemebase.h"
 #include "libmythui/mythuihelper.h"
 
 
 static SchemaUpgradeWizard * c_wizard = 0;
 
+static MythThemeBase * themeBase = 0;
 
 SchemaUpgradeWizard::SchemaUpgradeWizard(const QString &DBSchemaSetting,
                                          const QString &upgradeSchemaVal)
@@ -328,7 +330,7 @@
  
     if (gui)
     {
-        DialogBox       * dlg;
+        MythDialogBox   * dlg;
         MythScreenStack * pop;
         MythMainWindow  * win = gContext->GetMainWindow();
 
@@ -336,8 +338,18 @@
             win = TempMainWindow(true);
 
         pop = win->GetStack("popup stack");
+        if (!pop)
+            pop = win->GetMainStack();
+        if (!pop)
+            return MYTH_SCHEMA_ERROR;
 
-        dlg = new DialogBox(win, message);
+
+
+        dlg = new MythDialogBox(message, pop, "schema prompt");
+        if (!dlg->Create())
+            return MYTH_SCHEMA_ERROR;
+
+        pop->AddScreen(dlg);
         dlg->AddButton(QObject::tr("Exit"));
 
         if (returnValue == MYTH_SCHEMA_ERROR)
@@ -349,7 +361,8 @@
             if (m_expertMode)
                 dlg->AddButton(QObject::tr("Use current schema"));
 
-            DialogCode selected = dlg->exec();
+            DialogCode selected = (DialogCode)(int)dlg->exec();
+printf("Got exec() = %d\n", selected);
 
             // The annoying extra confirmation:
             if (kDialogCodeButton1 == selected ||
@@ -376,7 +389,11 @@
                 if (connections)
                     message += "\n\n" + warnOtherCl;
 
-                DialogBox *dlg2 = new DialogBox(win, message);
+                MythDialogBox *dlg2 = new MythDialogBox(message, pop,
+                                                        "schema extra popup");
+                if (!dlg2->Create())
+                    return MYTH_SCHEMA_ERROR;
+                pop->AddScreen(dlg2);
 
                 dlg2->AddButton(QObject::tr("Exit"));
                 if (upgradable)
@@ -384,7 +401,7 @@
                 if (m_expertMode)
                     dlg2->AddButton(QObject::tr("Use current schema"));
 
-                selected = dlg2->exec();
+                selected = (DialogCode)(int)dlg->exec();
 
                 dlg2->deleteLater();
             }
@@ -471,6 +488,9 @@
 
     win->Init();
     gContext->SetMainWindow(win);
+
+    themeBase = new MythThemeBase();
+
     m_createdTempWindow = true;
 
     LanguageSettings::prompt();
@@ -481,6 +501,7 @@
 
 void SchemaUpgradeWizard::EndTempWindow(void)
 {
+    delete themeBase;
     gContext->SetMainWindow(NULL);
     DestroyMythMainWindow();
     m_createdTempWindow = false;
