diff --git a/sources/recentfiles.cpp b/sources/recentfiles.cpp index 7819f4f51..60a04e876 100644 --- a/sources/recentfiles.cpp +++ b/sources/recentfiles.cpp @@ -33,7 +33,7 @@ RecentFiles::RecentFiles(const QString &identifier, int size, QObject *parent) : menu_(nullptr) { mapper_ = new QSignalMapper(this); - connect(mapper_, SIGNAL(mapped(const QString &)), this, SLOT(handleMenuRequest(const QString &))); + connect(mapper_, &QSignalMapper::mappedString, this, &RecentFiles::handleMenuRequest); extractFilesFromSettings(); buildMenu();