From: APTX Date: Tue, 3 Jul 2012 12:45:35 +0000 (+0200) Subject: Add context menu options for new model data X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=fc44f83cff75c8f0012ce637ec34f9894ef2864f;p=localmylist.git Add context menu options for new model data --- diff --git a/management-gui/mylistview.cpp b/management-gui/mylistview.cpp index 059541d..de59d76 100644 --- a/management-gui/mylistview.cpp +++ b/management-gui/mylistview.cpp @@ -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; }