Fixed broken mapped signal for RecentFiles

This commit is contained in:
Magnus Hellströmer
2024-09-09 02:45:57 +02:00
parent 5973db00f7
commit c77eb98a15

View File

@@ -33,7 +33,7 @@ RecentFiles::RecentFiles(const QString &identifier, int size, QObject *parent) :
menu_(nullptr) menu_(nullptr)
{ {
mapper_ = new QSignalMapper(this); mapper_ = new QSignalMapper(this);
connect(mapper_, SIGNAL(mapped(const QString &)), this, SLOT(handleMenuRequest(const QString &))); connect(mapper_, &QSignalMapper::mappedString, this, &RecentFiles::handleMenuRequest);
extractFilesFromSettings(); extractFilesFromSettings();
buildMenu(); buildMenu();