Commit afbc31e0 authored by Halla Rempt's avatar Halla Rempt

BUG:342672 Make --export work when another instance of Krita is running

parent f4f92ccf
......@@ -110,13 +110,17 @@ extern "C" int main(int argc, char **argv)
if (app.isRunning()) {
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QByteArray ba;
QDataStream ds(&ba, QIODevice::WriteOnly);
args->saveAppArgs(ds);
ds.device()->close();
if (app.sendMessage(ba)) {
return 0;
if (!args->isSet("export")) {
QByteArray ba;
QDataStream ds(&ba, QIODevice::WriteOnly);
args->saveAppArgs(ds);
ds.device()->close();
if (app.sendMessage(ba)) {
return 0;
}
}
}
......
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