Skip to content
Permalink
Browse files

block signal.(refs #78)

  • Loading branch information...
haraki committed Jun 13, 2019
1 parent 65b9948 commit 9cdfe5de887eb4a5b6dd73400617e37d0af7d97e
Showing with 2 additions and 0 deletions.
  1. +2 −0 folderform.cpp
@@ -301,6 +301,7 @@ void FolderForm::onDirectoryLoaded(const QString& path)
ui->folderView->setCursor(currentRootIndex);
}

ui->bookmarkToolButton->blockSignals(true);
if(Settings::getInstance()->searchBookmarkDirPath(path) >= 0)
{
ui->bookmarkToolButton->setChecked(true);
@@ -309,6 +310,7 @@ void FolderForm::onDirectoryLoaded(const QString& path)
{
ui->bookmarkToolButton->setChecked(false);
}
ui->bookmarkToolButton->blockSignals(false);
}

void FolderForm::onLayoutChanged(const QList<QPersistentModelIndex> &parents/* = QList<QPersistentModelIndex>()*/, QAbstractItemModel::LayoutChangeHint hint/* = QAbstractItemModel::NoLayoutChangeHint*/)

0 comments on commit 9cdfe5d

Please sign in to comment.
You can’t perform that action at this time.