]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
* src/frontends/qt4/QTocDialog.C (updateGui):
[lyx.git] / src / text3.C
index f448e414bc3949c1b43767b1af24e02249a5ab20..2e595fadb85da2a8faf1220fbba20f3a588a9b9f 100644 (file)
@@ -121,8 +121,7 @@ namespace {
        {
                if (selecting || cur.mark())
                        cur.setSelection();
-               if (!cur.selection())
-                       theSelection().haveSelection(false);
+               theSelection().haveSelection(cur.selection());
                cur.bv().switchKeyMap();
        }
 
@@ -1065,7 +1064,9 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                if (lyxrc.auto_region_delete) {
                        if (cur.selection())
                                cutSelection(cur, false, false);
-                       theSelection().haveSelection(false);
+                               // cutSelection clears the X selection.
+                       else
+                               theSelection().haveSelection(false);
                }
 
                cur.clearSelection();