mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Improve coding style
This commit is contained in:
@@ -89,7 +89,8 @@ void ExecutionLogWidget::displayContextMenu(const QPoint &pos, const LogListView
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
// only show copy action if any of the row is selected
|
||||
if (view->currentIndex().isValid()) {
|
||||
if (view->currentIndex().isValid())
|
||||
{
|
||||
const QAction *copyAct = menu->addAction(UIThemeManager::instance()->getIcon("edit-copy"), tr("Copy"));
|
||||
connect(copyAct, &QAction::triggered, view, &LogListView::copySelection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user