Skip to content

Commit

Permalink
Don't add repeated commands to the launcher history list
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6807 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Mar 16, 2007
1 parent f1a36f9 commit e47ba53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/launcher/qgslauncherplugingui.cpp
Expand Up @@ -82,7 +82,10 @@ void QgsLauncherPluginGui::runProgram()


// add the program to the combo list
cmbCommands->insertItem(cmbCommands->currentText(), 0);
if(cmbCommands->findText(cmbCommands->currentText()) == -1)
{
cmbCommands->insertItem(cmbCommands->currentText(), 0);
}
// If this is first time around, remove the default tab
if(firstRun)
{
Expand Down

0 comments on commit e47ba53

Please sign in to comment.