View Issue Details

IDProjectCategoryView StatusLast Update
0016021ScribusGeneralpublic2020-04-05 19:37
Reporterale Assigned Toale  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version1.5.6.svn 
Fixed in Version1.5.6.svn 
Summary0016021: Open recent menu: put the accelerator on the number
Descriptioncurrently the accelerator is put at the beginning of the path, which will always be / on linux and C (or D) on windows.

the patch puts the accelerator before the indexing number...
TagsNo tags attached.
PatchYes

Activities

ale

2019-12-23 11:06

manager  

recent-files.diff (1,004 bytes)   
diff --git a/scribus/scribus.cpp b/scribus/scribus.cpp
index 030d77f68..e0918ddcf 100644
--- a/scribus/scribus.cpp
+++ b/scribus/scribus.cpp
@@ -2965,7 +2965,7 @@ void ScribusMainWindow::rebuildRecentFileMenu()
 		strippedName = localName = QDir::toNativeSeparators(m_recentDocsList[i]);
 		strippedName.remove(QDir::separator());
 		strippedName.prepend(QString("%1").arg(i+1, 2, 10, QChar('0')));
-		scrRecentFileActions.insert(strippedName, new ScrAction(ScrAction::RecentFile, QPixmap(), QPixmap(), QString("%1 &%2").arg(i+1).arg(localName.replace("&","&&")), QKeySequence(), this, m_recentDocsList[i]));
+		scrRecentFileActions.insert(strippedName, new ScrAction(ScrAction::RecentFile, QPixmap(), QPixmap(), QString("&%1 %2").arg(i+1).arg(localName.replace("&","&&")), QKeySequence(), this, m_recentDocsList[i]));
 		connect( scrRecentFileActions[strippedName], SIGNAL(triggeredData(QString)), this, SLOT(loadRecent(QString)) );
 		scrMenuMgr->addMenuItemString(strippedName, "FileOpenRecent");
 	}
recent-files.diff (1,004 bytes)   

Issue History

Date Modified Username Field Change
2019-12-23 11:06 ale New Issue
2019-12-23 11:06 ale File Added: recent-files.diff
2019-12-26 03:19 jghali Summary [PATCH]: Open recent menu: put the accelerator on the number => Open recent menu: put the accelerator on the number
2019-12-26 03:19 jghali Assigned To => jghali
2019-12-26 03:19 jghali Status new => resolved
2019-12-26 03:19 jghali Resolution open => fixed
2019-12-26 03:19 jghali Fixed in Version => 1.5.6.svn
2019-12-26 04:42 jghali Assigned To jghali => ale
2020-04-05 19:37 cbradney Status resolved => closed