Kaydet (Commit) 971f0e32 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Not a good idea to close the dialog first then start the import.

Because that leads to a crash.

Change-Id: I7ca7d94e1164a44bbef9e9b41e3f8c5bcf113c22
üst 2ffceb19
...@@ -436,13 +436,13 @@ void ScXMLSourceDlg::OkPressed() ...@@ -436,13 +436,13 @@ void ScXMLSourceDlg::OkPressed()
// TODO: Process range links. // TODO: Process range links.
Close();
ScOrcusFilters* pOrcus = ScFormatFilter::Get().GetOrcusFilters(); ScOrcusFilters* pOrcus = ScFormatFilter::Get().GetOrcusFilters();
if (!pOrcus) if (!pOrcus)
return; return;
pOrcus->importXML(*mpDoc, maSrcPath, aParam); pOrcus->importXML(*mpDoc, maSrcPath, aParam);
Close();
} }
void ScXMLSourceDlg::CancelPressed() void ScXMLSourceDlg::CancelPressed()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment