Commit ffd12608 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[applets/comic] Remove pointless null check

mActionShop is never null here
parent 6a0aec81
Pipeline #207122 passed with stage
in 3 minutes and 30 seconds
......@@ -503,9 +503,7 @@ void ComicApplet::updateContextMenu()
mActionGoFirst->setEnabled(false);
mActionGoLast->setEnabled(false);
mActionScaleContent->setEnabled(false);
if (mActionShop) {
mActionShop->setEnabled(false);
}
mActionShop->setEnabled(false);
mActionStorePosition->setEnabled(false);
mActionGoJump->setEnabled(false);
mActionSaveComicAs->setEnabled(false);
......@@ -515,9 +513,7 @@ void ComicApplet::updateContextMenu()
mActionGoFirst->setVisible(mCurrent.hasFirst());
mActionGoFirst->setEnabled(mCurrent.hasPrev());
mActionGoLast->setEnabled(true);
if (mActionShop) {
mActionShop->setEnabled(mCurrent.shopUrl().isValid());
}
mActionShop->setEnabled(mCurrent.shopUrl().isValid());
mActionScaleContent->setEnabled(true);
mActionStorePosition->setEnabled(true);
mActionGoJump->setEnabled(true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment