After looking at the code of shell plugin and some more debugging I
found the responsible snippet of code in the plugin (scope.cpp):

    bool containsDepartments = m_rootDepartment.get() != nullptr;
    // design decision - no navigation when doing searches
    containsDepartments &= m_searchQuery.isEmpty();

    if (containsDepartments != m_hasNavigation) {
        m_hasNavigation = containsDepartments;
        Q_EMIT hasNavigationChanged();
    }

    if (!containsDepartments && !m_currentNavigationId.isEmpty()) {
        m_currentNavigationId = "";
        Q_EMIT currentNavigationIdChanged();
    }

Unfortunately that means we cannot pass department and non-empty query
string because search needs to be global, and not within a department
(design decision affecting all scopes) and shell plugin resets
department id if that happens. I think this behavior of plugin is
questionable and needs to be re-considered, but any change here affects
all scopes.

The fix for this particular bug should therefore happen in mediascanner
scope.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381971

Title:
  Selecting artists from "My Music" scope doesn't show
  "albums_of_artist" view anymore

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-scope-mediascanner/+bug/1381971/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to