Skip to content

Commit 14c1d1c

Browse files
committed
Improved formatting of loading progress dialog
1 parent 727d41e commit 14c1d1c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

xml/xml_load_world.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -623,17 +623,18 @@ POSITION lpos;
623623

624624
LOAD_LOOP (parent, "include", pIncludeElement);
625625

626-
if (pDlg)
627-
{
628-
Get_XML_string (*pIncludeElement, "name", strFileName, false, true);
626+
// move progress dialog along
627+
if (pDlg)
628+
{
629+
Get_XML_string (*pIncludeElement, "name", strFileName, false, true);
629630

630-
int iSlash = strFileName.ReverseFind ('\\');
631-
if (iSlash != -1)
632-
strFileName = strFileName.Mid (iSlash + 1);
631+
int iSlash = strFileName.ReverseFind ('\\');
632+
if (iSlash != -1)
633+
strFileName = strFileName.Mid (iSlash + 1);
633634

634-
pDlg->SetStatus (TFormat ("Loading plugin: %s", (LPCTSTR) strFileName));
635-
pDlg->StepIt ();
636-
}
635+
pDlg->SetStatus (TFormat ("Loading plugin: %s", (LPCTSTR) strFileName));
636+
pDlg->StepIt ();
637+
}
637638

638639
try
639640
{

0 commit comments

Comments
 (0)