<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, davidedmundson.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13840">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The codepath for opening devices was never actually entered as always a <tt style="background: #ebebeb; font-size: 13px;">QUrl</tt> was set as data.<br />
This resulted in errors like "Cannot open URL /org/freedesktop/someudi".<br />
Moreover, for some reason the <tt style="background: #ebebeb; font-size: 13px;">run()</tt> code created a new <tt style="background: #ebebeb; font-size: 13px;">KFilePlacesModel</tt> but since devices are added delayed, searching for a device in the model right after creation doesn't work.<br />
The code is adjusted to use the one <tt style="background: #ebebeb; font-size: 13px;">KFilePlacesModel</tt> instance in the helper, since <tt style="background: #ebebeb; font-size: 13px;">run()</tt> is executed on the main thread anyway.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>5.12 branch?</p>

<p>Typed "500", got my "500 MiB" test partition listed, clicked it, it would mount and then open<br />
Opening other locations like "Projects" still works fine</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13840">https://phabricator.kde.org/D13840</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/places/placesrunner.cpp<br />
runners/places/placesrunner.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, davidedmundson<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>