D22945: Fix --replace option

2019-08-06 Thread Aleix Pol Gonzalez
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit R120:8e61f49cc292: Fix --replace option (authored by apol). CHANGED PRIOR TO COMMIT

D22945: Fix --replace option

2019-08-05 Thread Noah Davis
ndavis added a comment. I can confirm that this fixes the bug. Thanks! REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D22945 To: apol Cc: ndavis, broulik, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai,

D22945: Fix --replace option

2019-08-05 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 63134. apol added a comment. x REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D22945?vs=63120=63134 BRANCH replace REVISION DETAIL https://phabricator.kde.org/D22945 AFFECTED FILES shell/main.cpp To:

D22945: Fix --replace option

2019-08-05 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 63120. apol added a comment. Split into two REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D22945?vs=63109=63120 BRANCH replace REVISION DETAIL https://phabricator.kde.org/D22945 AFFECTED FILES

D22945: Fix --replace option

2019-08-05 Thread Aleix Pol Gonzalez
apol added inline comments. INLINE COMMENTS > broulik wrote in main.cpp:136 > Can you explain? The `ShellCorona` is parented to the app, so is destroyed > with it. Is the `deleteLater` even still processed at this point? aboutToQuit is called much earlier than the actual destruction. >

D22945: Fix --replace option

2019-08-05 Thread Kai Uwe Broulik
broulik added a comment. Also can you split the crash fix and `--replace` option change please INLINE COMMENTS > main.cpp:136 > corona->setShell(cliOptions.value(shellPluginOption)); > +QObject::connect(QCoreApplication::instance(), > ::aboutToQuit, corona, ::deleteLater); > Can

D22945: Fix --replace option

2019-08-05 Thread Aleix Pol Gonzalez
apol created this revision. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. apol requested review of this revision. REVISION SUMMARY Wait for the other process to unregister before starting the new one. TEST PLAN Reproduced the problem Noah mentioned and addressed