fix a bug where fx browser crashes when insert if no item is selected
This commit is contained in:
parent
1cc6716cff
commit
c99df6a18c
1 changed files with 2 additions and 1 deletions
|
@ -494,8 +494,9 @@ TFx *InsertFxPopup::createFx() {
|
||||||
TXsheet *xsh = scene->getXsheet();
|
TXsheet *xsh = scene->getXsheet();
|
||||||
|
|
||||||
QTreeWidgetItem *item = m_fxTree->currentItem();
|
QTreeWidgetItem *item = m_fxTree->currentItem();
|
||||||
QString text = item->data(0, Qt::UserRole).toString();
|
if (item == NULL) return 0;
|
||||||
|
|
||||||
|
QString text = item->data(0, Qt::UserRole).toString();
|
||||||
if (text.isEmpty()) return 0;
|
if (text.isEmpty()) return 0;
|
||||||
|
|
||||||
TFx *fx;
|
TFx *fx;
|
||||||
|
|
Loading…
Reference in a new issue