Fix splash screen skipping so tip of the day isn't skipped on Mac.

Originally committed to SVN as r1587.
This commit is contained in:
Niels Martin Hansen 2007-09-24 01:35:47 +00:00
parent 545f85ff92
commit 3f5b58762a

View file

@ -129,17 +129,20 @@ FrameMain::FrameMain (wxArrayString args)
// Splash screen // Splash screen
// It doesn't work properly on wxMac, and the jumping dock icon // It doesn't work properly on wxMac, and the jumping dock icon
// signals the same as the splash screen either way. // signals the same as the splash screen either way.
#if !_DEBUG && !__WXMAC__ #if !_DEBUG && !__WXMAC__
if (Options.AsBool(_T("Show Splash"))) { if (Options.AsBool(_T("Show Splash"))) {
SplashScreen *splash = new SplashScreen(this); SplashScreen *splash = new SplashScreen(this);
splash->Show(true); splash->Show(true);
splash->Update(); splash->Update();
} }
else { else
#endif
{
#if !_DEBUG
// Show tip of the day // Show tip of the day
TipOfTheDay::Show(this); TipOfTheDay::Show(this);
#endif
} }
#endif
wxSafeYield(); wxSafeYield();
// Set autosave timer // Set autosave timer