Commit d408cdf5 authored by Halla Rempt's avatar Halla Rempt

Make sure we always fill the partlist

(This'll conflict with the mvc branch for sure...)
parent d1c6cc24
...@@ -303,6 +303,7 @@ bool KoApplication::start() ...@@ -303,6 +303,7 @@ bool KoApplication::start()
#endif #endif
QString errorMsg; QString errorMsg;
KoPart *part = entry.createKoPart(&errorMsg); KoPart *part = entry.createKoPart(&errorMsg);
d->partList << part;
if (!part) { if (!part) {
if (!errorMsg.isEmpty()) if (!errorMsg.isEmpty())
...@@ -415,6 +416,7 @@ bool KoApplication::start() ...@@ -415,6 +416,7 @@ bool KoApplication::start()
// For now create an empty document // For now create an empty document
QString errorMsg; QString errorMsg;
KoPart *part = entry.createKoPart(&errorMsg); KoPart *part = entry.createKoPart(&errorMsg);
d->partList << part;
if (part) { if (part) {
url.setPath(QDir::homePath() + "/" + autoSaveFile); url.setPath(QDir::homePath() + "/" + autoSaveFile);
...@@ -469,6 +471,7 @@ bool KoApplication::start() ...@@ -469,6 +471,7 @@ bool KoApplication::start()
// For now create an empty document // For now create an empty document
QString errorMsg; QString errorMsg;
KoPart *part = entry.createKoPart(&errorMsg); KoPart *part = entry.createKoPart(&errorMsg);
d->partList << part;
if (part) { if (part) {
KoDocument *doc = part->document(); KoDocument *doc = part->document();
// show a mainWindow asap // show a mainWindow asap
...@@ -573,7 +576,6 @@ bool KoApplication::start() ...@@ -573,7 +576,6 @@ bool KoApplication::start()
<<"\t100" << endl; <<"\t100" << endl;
} }
d->partList << part;
} }
} }
if (benchmarkLoading) { if (benchmarkLoading) {
......
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