Skip to content

Commit

Permalink
get rid of QSignalBlocker
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 26, 2020
1 parent fa57be4 commit ea4dd9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -29,7 +29,6 @@
#include <QJsonArray>
#include <QFileDialog>
#include <QMenu>
#include <QSignalBlocker>

#include "qgsexpressionbuilderwidget.h"
#include "qgslogger.h"
Expand Down Expand Up @@ -431,8 +430,7 @@ void QgsExpressionBuilderWidget::btnRemoveFile_pressed()
if ( QFile::remove( mFunctionsPath + QDir::separator() + fileName.append( ".py" ) ) )
{
{
const QSignalBlocker blocker( cmbFileNames );
QListWidgetItem *itemToRemove = cmbFileNames->takeItem( currentRow );
QListWidgetItem *itemToRemove = whileBlocking( cmbFileNames )->takeItem( currentRow );
delete itemToRemove;
}

Expand Down

0 comments on commit ea4dd9c

Please sign in to comment.