]> git.lyx.org Git - features.git/commitdiff
[Bug 3461] Make escape key trigger a reset of the dialog.
authorRichard Heck <rgheck@comcast.net>
Thu, 17 May 2007 12:11:56 +0000 (12:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 17 May 2007 12:11:56 +0000 (12:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18381 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QRef.cpp

index c16e6ee6f3653caa765f2ec2d1dd6e947c03ad61..109085010fb73189d1a3efb4c9d94b4ce5177696 100644 (file)
@@ -51,6 +51,7 @@ QRefDialog::QRefDialog(QRef * form)
        connect(applyPB, SIGNAL(clicked()), form_, SLOT(slotApply()));
        connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(reset_dialog()));
+       connect(this, SIGNAL(rejected()), this, SLOT(reset_dialog()));
 
        connect(typeCO, SIGNAL(activated(int)), 
                this, SLOT(changed_adaptor()));