app: Improve --project handling

Authored by kfunk on Nov 16 2017, 1:11 PM.

Description

app: Improve --project handling

Summary:
Before this patch --project PROJ had several flaws:

  • Could not be used to open the project in an existing instance
  • Could not be used to open a project if there was an already running KDevelop instance

With this change:

  • We'll check which sessions contain PROJ
    • We'll use the first match as the 'target session' to be opened
  • Continue as usual
    • If there's a KDevelop instance with that session open: activate
    • If not: Open a new instance with said session

Reviewers: dfaure, brauch

Reviewed By: brauch

Subscribers: brauch, cullmann, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D8842

Details

Committed
kfunkNov 16 2017, 4:36 PM
Reviewer
brauch
Differential Revision
D8842: app: Improve --project handling
Parents
R32:12b1096a0769: Register kdevelop as handler for repo urls, add --fetch argument
Branches
Unknown
Tags
Unknown