From fc44f83cff75c8f0012ce637ec34f9894ef2864f Mon Sep 17 00:00:00 2001 From: APTX Date: Tue, 3 Jul 2012 14:45:35 +0200 Subject: [PATCH] Add context menu options for new model data --- management-gui/mylistview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.52.0