mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Qt: fix core association not showing up when clicking on playlists while in grid view
This commit is contained in:
parent
fe6dda917a
commit
51f968c557
@ -1416,13 +1416,18 @@ void MainWindow::addFilesToPlaylist(QStringList files)
|
||||
reloadPlaylists();
|
||||
}
|
||||
|
||||
void MainWindow::onGridItemClicked()
|
||||
void MainWindow::onGridItemClicked(ThumbnailWidget *widget)
|
||||
{
|
||||
QHash<QString, QString> hash;
|
||||
ThumbnailWidget *w = static_cast<ThumbnailWidget*>(sender());
|
||||
|
||||
if (!w)
|
||||
{
|
||||
if (widget)
|
||||
w = widget;
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_currentGridWidget)
|
||||
{
|
||||
@ -4349,11 +4354,26 @@ void MainWindow::initContentGridLayout()
|
||||
|
||||
void MainWindow::onContentGridInited()
|
||||
{
|
||||
ThumbnailWidget *thumbnailWidget = NULL;
|
||||
|
||||
m_gridLayoutWidget->resize(m_gridScrollArea->viewport()->size());
|
||||
|
||||
onZoomValueChanged(m_zoomSlider->value());
|
||||
|
||||
onSearchEnterPressed();
|
||||
|
||||
if (m_gridItems.count() > 0)
|
||||
{
|
||||
GridItem *gridItem = m_gridItems.at(0);
|
||||
|
||||
if (gridItem)
|
||||
{
|
||||
thumbnailWidget = m_gridItems.at(0)->widget.data();
|
||||
|
||||
if (thumbnailWidget)
|
||||
onGridItemClicked(thumbnailWidget);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::initContentTableWidget()
|
||||
|
@ -224,8 +224,10 @@ static void* ui_companion_qt_init(void)
|
||||
QMenu *editMenu = NULL;
|
||||
QMenu *viewMenu = NULL;
|
||||
QMenu *viewClosedDocksMenu = NULL;
|
||||
#ifdef Q_OS_WIN
|
||||
QMenu *toolsMenu = NULL;
|
||||
QMenu *updaterMenu = NULL;
|
||||
#endif
|
||||
QMenu *helpMenu = NULL;
|
||||
QRect desktopRect;
|
||||
QDockWidget *thumbnailDock = NULL;
|
||||
@ -325,9 +327,9 @@ static void* ui_companion_qt_init(void)
|
||||
viewMenu->addSeparator();
|
||||
viewMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS), mainwindow->viewOptionsDialog(), SLOT(showDialog()));
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
toolsMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_TOOLS));
|
||||
updaterMenu = toolsMenu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER));
|
||||
#ifdef Q_OS_WIN
|
||||
updaterMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_NIGHTLY), mainwindow, SLOT(updateRetroArchNightly()));
|
||||
#endif
|
||||
helpMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP));
|
||||
|
@ -431,7 +431,7 @@ private slots:
|
||||
void onUpdateGridItemPixmapFromImage(GridItem *item);
|
||||
void onPendingItemUpdates();
|
||||
void onGridItemDoubleClicked();
|
||||
void onGridItemClicked();
|
||||
void onGridItemClicked(ThumbnailWidget *thumbnailWidget = NULL);
|
||||
void onPlaylistFilesDropped(QStringList files);
|
||||
void onUpdateNetworkError(QNetworkReply::NetworkError code);
|
||||
void onUpdateNetworkSslErrors(const QList<QSslError> &errors);
|
||||
|
Loading…
x
Reference in New Issue
Block a user