]> cloud.milkyroute.net Git - dolphin.git/commitdiff
DolphinContextMenu: drop wrong assert
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Tue, 15 Dec 2020 21:56:06 +0000 (22:56 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Tue, 15 Dec 2020 21:56:06 +0000 (22:56 +0100)
`m_context` can also be `SearchContext` or `TimelineContext`, so this
assert has been wrong since 8b0c12a59ccb23f.

src/dolphincontextmenu.cpp

index 283f5256509cd85346d52a3947642b18e8f02730..91e9d8238d5c7834f80ce09f77b99cf729c3f228 100644 (file)
@@ -103,7 +103,6 @@ DolphinContextMenu::Command DolphinContextMenu::open()
     } else if (m_context & ItemContext) {
         openItemContextMenu();
     } else {
-        Q_ASSERT(m_context == NoContext);
         openViewportContextMenu();
     }