]> Some of my projects - localmylist.git/commitdiff
Add context menu options for new model data
authorAPTX <marek321@gmail.com>
Tue, 3 Jul 2012 12:45:35 +0000 (14:45 +0200)
committerAPTX <marek321@gmail.com>
Tue, 3 Jul 2012 12:45:35 +0000 (14:45 +0200)
management-gui/mylistview.cpp

index 059541d2d7ff87065228cdd0a53746de542a87a7..de59d762aa4b9fd24b9f155e32517be0eec77ccd 100644 (file)
@@ -67,6 +67,12 @@ void MyListView::showCustomContextMenu(const QPoint &pos)
                                        << markWatchedAction
                                        << renameTestAction
                                        << renameFilesAction;
+               case MyListModel::FileLocation:
+                       aniDBLinkAction->setText(tr("Open AniDB Page (%1%2)").arg('f').arg(id));
+                       actions << aniDBLinkAction
+                                       << markWatchedAction
+                                       << renameTestAction
+                                       << renameFilesAction;
                break;
        }
 
@@ -107,6 +113,7 @@ void MyListView::openAnidbPage()
                        QDesktopServices::openUrl(QUrl(aniDBUrlBase.arg('e').arg(id)));
                break;
                case MyListModel::File:
+               case MyListModel::FileLocation:
                        QDesktopServices::openUrl(QUrl(aniDBUrlBase.arg('f').arg(id)));
                break;
        }