From a8d7b22cb88a2d435fdd064fab71c3037c275b8d Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 9 May 2025 11:17:55 +0200 Subject: Activate keyboard input on RandomTab Use Signal::activated instead of doubleClicked to play a random file. --- randomtab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randomtab.cpp') diff --git a/randomtab.cpp b/randomtab.cpp index 5242a2a..03881ea 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -154,7 +154,7 @@ void RandomTab::setupGui(){ mFileView->setRootIsDecorated(false); mFileView->setSelectionMode(QAbstractItemView::ExtendedSelection); mFileView->setSelectionBehavior(QAbstractItemView::SelectRows); - connect(mFileView, &RandomFileView::doubleClicked, this, &RandomTab::playDoubleclicked); + connect(mFileView, &RandomFileView::activated, this, &RandomTab::playDoubleclicked); mFileModel = new QStandardItemModel; mFileProxy = new QSortFilterProxyModel; mFileProxy->setSourceModel(mFileModel); -- cgit v1.2.3-70-g09d2