diff --git a/quickgui/controller.cpp b/quickgui/controller.cpp index 6185f2c..c90bb92 100644 --- a/quickgui/controller.cpp +++ b/quickgui/controller.cpp @@ -322,12 +322,10 @@ void Controller::handleEntriesRemoved(const QModelIndex &parentIndex, int first, } break; case EntryType::Node: - // FIXME: remove const_cast in passwordfile v4 - if (currentAccount->isIndirectChildOf(static_cast(const_cast(childEntry)))) { + if (currentAccount->isIndirectChildOf(static_cast(childEntry))) { setCurrentAccount(nullptr); } break; - default:; } } }