#3149 closed defect (fixed)
GUI/Win32: Error dialog changes window caption
Reported by: | SF/clemty | Owned by: | eriktorbjorn |
---|---|---|---|
Priority: | normal | Component: | Port: Win32 |
Version: | Keywords: | ||
Cc: | Game: |
Description
ScummVM 0.10.0 Win32 Daily Build Apr 16
I tried starting Broken Sword 2 but I forgot to copy the CD.INF - an error dialog popped up, and the Window caption of the ScummVM program window changed to "Error".
On clicking ok the GUI/launcher appeared again, but the window caption still stated "Error" and did not reset to "ScummVM <version> <timestamp>"
Ticket imported from: #1701842. Ticket imported from: bugs/3149.
Attachments (1)
Change History (8)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Wouldn't it be simpler to just move the setWindowCaption(gScummVMFullVersion) call to the launcherDialog() function in base/main.cpp, like in the attached patch?
File Added: caption.diff
comment:4 by , 18 years ago
Owner: | set to |
---|
comment:6 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:7 by , 6 years ago
Component: | → Port: Win32 |
---|
Note:
See TracTickets
for help on using tickets.
Here's a fix for this error:
In file engines/engine.cpp, go to line 37 and add this line below it: #include "base/version.h" Then, go to line 179 and add this line below it: _system->setWindowCaption(gScummVMFullVersion);
I can't add files to bug reports from other people, so I can't submit a proper patch for it, but it's quite easy to fix this with these two changes.