Skip to content

Commit cf9ee65

Browse files
committed
Fix showing warnings on invalid schema versions
This reverts b88cb77 . We can't use a MythUI popup here, yet, because we don't yet have a valid main event loop executing and the code is expecting a blocking dialog. Eventually, when the schema wizard is converted to MythUI, this will be replaced. Fixes #10312
1 parent 3758090 commit cf9ee65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mythtv/libs/libmyth/schemawizard.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <unistd.h> // for isatty() on Windows
33

44
#include "dialogbox.h"
5-
#include "mythdialogbox.h"
65
#include "mythcorecontext.h"
76
#include "schemawizard.h"
87
#include "mythmiscutil.h"
@@ -416,7 +415,7 @@ SchemaUpgradeWizard::PromptForUpgrade(const char *name,
416415
if (returnValue == MYTH_SCHEMA_ERROR)
417416
{
418417
// Display error, return warning to caller
419-
ShowOkPopup(message);
418+
MythPopupBox::showOkPopup(GetMythMainWindow(), "", message);
420419
return MYTH_SCHEMA_ERROR;
421420
}
422421

0 commit comments

Comments
 (0)