The following commit has been merged in the master branch:
commit b54694281ef70167eeae887ed87ead4d0e141e77
Author: Andrei Zavada <[email protected]>
Date: Tue Apr 30 21:23:32 2013 +0300
talk to user if no name is given to a newly marked plain annotation
diff --git a/src/ui/sf/montage_cb.cc b/src/ui/sf/montage_cb.cc
index 572a0de..bd33190 100644
--- a/src/ui/sf/montage_cb.cc
+++ b/src/ui/sf/montage_cb.cc
@@ -1112,8 +1112,6 @@ iSFPageSelectionAnnotate_activate_cb(
if ( GTK_RESPONSE_OK ==
gtk_dialog_run( (GtkDialog*)SF.wSFAnnotationLabel) ) {
auto new_ann = gtk_entry_get_text( SF.eSFAnnotationLabel);
- if ( strlen( new_ann) == 0 )
- return;
using sigfile::SAnnotation;
auto type =
@@ -1125,6 +1123,11 @@ iSFPageSelectionAnnotate_activate_cb(
? SAnnotation::TType::eyeblink
: SAnnotation::TType::plain;
+ if ( strlen( new_ann) == 0 && type == SAnnotation::TType::plain
) {
+ aghui::pop_ok_message( SF.wSF, "Give a plain annotation
a name", "and try again.");
+ return;
+ }
+
SF.using_channel->mark_region_as_annotation( new_ann, type);
gtk_widget_queue_draw( (GtkWidget*)SF.daSFMontage);
--
Sleep experiment manager
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit