John Levon <[EMAIL PROTECTED]> writes:

|               fname = fileDlg.Select(_("Choose template"),
|                                      lyxrc.template_path,
|                                      "*.lyx");
| -                templname = fname;
|               AllowInput(owner->view());
| +             if (fname=="")
| +                     return;
| +                templname = fname;
|       }

fname is a string so you should use:

        if (fname.empty())
                return;

        Lgb

Reply via email to