]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSelection.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSelection.cpp
index bc3022b6522d010e47aa32f1317b80e41d7078d0..23878b32328f49b90117ff6f03b8de9753945cab 100644 (file)
@@ -15,8 +15,8 @@
 #include "GuiSelection.h"
 
 #include "qt_helpers.h"
-#include "support/debug.h"
 
+#include "support/debug.h"
 #include "support/lstrings.h"
 
 #include <QApplication>
@@ -34,7 +34,7 @@ using support::externalLineEnding;
 GuiSelection::GuiSelection()
        : selection_supported_(qApp->clipboard()->supportsSelection())
 {
-       connect(qApp->clipboard(), SIGNAL(dataChanged()),
+       connect(qApp->clipboard(), SIGNAL(selectionChanged()),
                this, SLOT(on_dataChanged()));
        // initialize clipboard status.
        on_dataChanged();
@@ -100,6 +100,8 @@ bool GuiSelection::empty() const
        if (!selection_supported_)
                return true;
 
+       LYXERR(Debug::ACTION, "GuiSelection::empty: " << text_selection_empty_);
+
        return text_selection_empty_;
 }