r16494 by craig - #9877: Select first entry in recent documents list on welcome dialog

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 24 21:57:49 CET 2011


Author: craig
Date: Thu Mar 24 20:57:49 2011
New Revision: 16494

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16494
Log:
#9877: Select first entry in recent documents list on welcome dialog

Modified:
    trunk/Scribus/scribus/ui/newfile.cpp

Modified: trunk/Scribus/scribus/ui/newfile.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16494&path=/trunk/Scribus/scribus/ui/newfile.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/newfile.cpp (original)
+++ trunk/Scribus/scribus/ui/newfile.cpp Thu Mar 24 20:57:49 2011
@@ -408,6 +408,8 @@
 	uint max = qMin(prefsManager->appPrefs.uiPrefs.recentDocCount, recentDocList.count());
 	for (uint m = 0; m < max; ++m)
 		recentDocListBox->addItem( QDir::convertSeparators(recentDocList[m]) );
+	if (max>0)
+		recentDocListBox->setCurrentRow(0);
 }
 
 void NewDoc::setWidth(double)




More information about the scribus-commit mailing list