Blob Blame Raw
diff -up easystroke-0.6.0/prefs.cc.fix-no-select-crash easystroke-0.6.0/prefs.cc
--- easystroke-0.6.0/prefs.cc.fix-no-select-crash	2019-10-18 14:44:45.866097719 -0400
+++ easystroke-0.6.0/prefs.cc	2019-10-18 14:45:20.057369624 -0400
@@ -426,6 +426,8 @@ void Prefs::on_edit_extra() {
 	etv->get_cursor(path, col);
 	if (!path.gobj())
 		return;
+	if (path.empty())
+		return;
 	Gtk::TreeIter iter = *etm->get_iter(path);
 	std::vector<ButtonInfo>::iterator i = (*iter)[ecs.i];
 	SelectButton sb(*i, true, true);
@@ -448,6 +450,8 @@ void Prefs::on_remove_extra() {
 	etv->get_cursor(path, col);
 	if (!path.gobj())
 		return;
+	if (path.empty())
+		return;
 	Gtk::TreeIter iter = *etm->get_iter(path);
 	Atomic a;
 	std::vector<ButtonInfo>::iterator i = (*iter)[ecs.i];