Skip to content
Permalink
Browse files
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
  • Loading branch information
gsherman committed Mar 16, 2007
1 parent f1a36f9 commit e47ba53ae7906f9ca43860a714183f7bf73fc4a6
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/plugins/launcher/qgslauncherplugingui.cpp
@@ -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)
{

0 comments on commit e47ba53

Please sign in to comment.