Fix of DLG_ACTION handling in 'VFS Setting' dialog window.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-03-29 11:27:34 +04:00
parent 50a1b22860
commit e9014c5b13

View File

@ -422,9 +422,9 @@ confvfs_callback (Dlg_head * h, Widget * sender, dlg_msg_t msg, int parm, void *
switch (msg)
{
case DLG_ACTION:
if (sender->id == 6)
/* message from "Always use ftp proxy" checkbutton */
if (sender != NULL && sender->id == 6)
{
/* message from "Always use ftp proxy" checkbutton */
const gboolean not_use = !(((WCheck *) sender)->state & C_BOOL);
Widget *w;