[Gpredict-svn] SF.net SVN: gpredict:[110] trunk/src/gtk-rot-ctrl.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2008-09-15 23:28:59
|
Revision: 110 http://gpredict.svn.sourceforge.net/gpredict/?rev=110&view=rev Author: csete Date: 2008-09-15 23:29:11 +0000 (Mon, 15 Sep 2008) Log Message: ----------- Added check to ensure that we have a proper device configuration before engaging. Modified Paths: -------------- trunk/src/gtk-rot-ctrl.c Modified: trunk/src/gtk-rot-ctrl.c =================================================================== --- trunk/src/gtk-rot-ctrl.c 2008-09-15 23:26:11 UTC (rev 109) +++ trunk/src/gtk-rot-ctrl.c 2008-09-15 23:29:11 UTC (rev 110) @@ -742,6 +742,13 @@ ctrl->engaged = TRUE; } else { + if (ctrl->conf == NULL) { + /* we don't have a working configuration */ + sat_log_log (SAT_LOG_LEVEL_ERROR, + _("%s: Controller does not have a valid configuration"), + __FUNCTION__); + return; + } gtk_widget_set_sensitive (ctrl->DevSel, TRUE); ctrl->engaged = FALSE; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |