Mercurial > hg > forks > UniversalIndentGUI
changeset 197:de8808be3460
http://universalindent.sf.net/issue/1733680 After opening a file that was not in the list of recently opened files, this new entry got no status tip. Added this for new entries.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@401 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Fri, 08 Jun 2007 16:57:33 +0000 |
parents | 658f3fccb533 |
children | 864b5a251ab5 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Thu Jun 07 13:15:56 2007 +0000 +++ b/src/mainwindow.cpp Fri Jun 08 16:57:33 2007 +0000 @@ -1244,7 +1244,9 @@ // Put the current file at the first position if it not already is and is not empty. else if ( indexOfCurrentFile == -1 && !currentSourceFile.isEmpty() ) { recentlyOpenedList.insert(0, currentSourceFile); - recentlyOpenedActionList.insert(0, new QAction(QFileInfo(currentSourceFile).fileName(), menuRecently_Opened_Files) ); + QAction *recentlyOpenedAction = new QAction(QFileInfo(currentSourceFile).fileName(), menuRecently_Opened_Files); + recentlyOpenedAction->setStatusTip(currentSourceFile); + recentlyOpenedActionList.insert(0, recentlyOpenedAction ); } // Get the maximum recently opened list size.