Check the saved window coordinates. If the window is minimized when mmg is closed then the coordinates are negative. Moving the window to that position upon restart will make it invisible.

This commit is contained in:
Moritz Bunkus 2005-06-07 14:40:26 +00:00
parent f4d1a9d351
commit 16bb7e252a
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2005-06-07 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: If mmg was minimized when it was closed (e.g. with
Windows' "Show desktop" function) then it didn't show up after a
restart and could only be shown by maximizing it.
* mkvmerge: bug fix: If a OGM style chapter file contains empty
chapter names ('CHAPTER01NAME=' without something after the '=')
then this chapter's timecode is used as the name instead of

View File

@ -780,7 +780,9 @@ mmg_dialog::mmg_dialog():
cfg = wxConfigBase::Get();
cfg->SetPath(wxT("/GUI"));
if (cfg->Read(wxT("window_position_x"), &window_pos_x) &&
cfg->Read(wxT("window_position_y"), &window_pos_y))
cfg->Read(wxT("window_position_y"), &window_pos_y) &&
(0 < window_pos_x) && (0xffff > window_pos_x) &&
(0 < window_pos_y) && (0xffff > window_pos_y))
Move(window_pos_x, window_pos_y);
cfg->Read(wxT("warned_chapterditor_not_empty"),
&warned_chapter_editor_not_empty, false);