Commits

Matthew Smith  committed 4d3520c

EditingWindow.cc - Moved "clear keyword tags" out of populateTagList slot

  • Participants
  • Parent commits 3165bc6

Comments (0)

Files changed (1)

File EditingWindow.cc

 
     }
     
+    cw.lwAvailKeywordTags->clear();
+    cw.lwKeywordTags->clear();
     populateTagList();
     disconnect( cw.cbBlogSelector, SIGNAL( activated( int ) ),
                 this, SLOT( changeBlog( int ) ) );
 
 void EditingWindow::populateTagList() // slot
 {
-  cw.lwAvailKeywordTags->clear();
-  cw.lwKeywordTags->clear();
   if( useWordpressAPI ) {
     cw.lwAvailKeywordTags->setVisible( true );
     cw.tbSelectKeywordTag->setVisible( true );
     currentBlogid = currentBlogElement.firstChildElement( "blogid" ).text();
     // qDebug() << currentBlogid;
 
+
+    cw.lwAvailKeywordTags->clear();
+    cw.lwKeywordTags->clear();
     populateTagList();
 
     QDomElement catsElement = currentBlogElement.firstChildElement( "categories" );
       cw.lwTags->addItem( tags );
   }
 
+  cw.lwKeywordTags->clear();
   if( emap.contains( "Keywords" ) ) {
     keywords = emap.value( "Keywords" );
     d = keywords.count( QChar( ',' ) );
           }
         }
 
+        cw.lwAvailKeywordTags->clear();
         populateTagList();
 
         // Now populate and set the categories