D13654: Open konsole tool with the single project's root directory
noreply at phabricator.kde.org
Sat Jun 23 11:29:38 UTC 2018
brauch added inline comments.
> + auto projects = KDevelop::ICore::self()->activeSession()->containedProjects();
> + if (projects.size() == 1)
> + dir = projects.first().adjusted(QUrl::RemoveFilename).path(QUrl::FullyDecoded);
Hm, does this make sense? I very rarely have sessions with just one project open. Maybe instead use the current document's path or, if you think that is better, the root path of the project in which the current document is?
To: amhndu, #kdevelop, brauch
Cc: croick, kdevelop-devel, antismap, iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel