Skip to content

Commit e47ba53

Browse files
author
gsherman
committedMar 16, 2007
Don't add repeated commands to the launcher history list
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6807 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f1a36f9 commit e47ba53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/plugins/launcher/qgslauncherplugingui.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ void QgsLauncherPluginGui::runProgram()
8282

8383

8484
// add the program to the combo list
85-
cmbCommands->insertItem(cmbCommands->currentText(), 0);
85+
if(cmbCommands->findText(cmbCommands->currentText()) == -1)
86+
{
87+
cmbCommands->insertItem(cmbCommands->currentText(), 0);
88+
}
8689
// If this is first time around, remove the default tab
8790
if(firstRun)
8891
{

0 commit comments

Comments
 (0)
Please sign in to comment.