OpenToonz - An open-source full-featured 2D animation creation software
C
fix a bug where fx browser crashes when insert if no item is selected
pojieniec99df6a18c12
diff --git a/toonz/sources/toonz/insertfxpopup.cpp b/toonz/sources/toonz/insertfxpopup.cppindex bc5ea15e8..5d58540f2 100644--- a/toonz/sources/toonz/insertfxpopup.cpp+++ b/toonz/sources/toonz/insertfxpopup.cpp@@ -494,8 +494,9 @@ TFx *InsertFxPopup::createFx() {TXsheet *xsh = scene->getXsheet();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;TFx *fx;