]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInset.C
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / FormInset.C
index 4193cf3049626bf2f5bcc39813ede982cda16487..7f81476aaf02e8b13eb7c17a62bc40d875c69239 100644 (file)
@@ -81,7 +81,7 @@ void FormCommand::showInset(InsetCommand * inset)
 
        inset_    = inset;
        params    = inset->params();
-       ih_ = inset->hide.connect(slot(this, &FormCommand::hide));
+       ih_ = inset->hideDialog.connect(slot(this, &FormCommand::hide));
        show();
 }
 
@@ -94,5 +94,7 @@ void FormCommand::createInset(string const & arg)
        }
 
        params.setFromString(arg);
+       if ( !arg.empty() )
+               bc_.valid(); // so that the user can press Ok
        show();
 }