]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiCompare.cpp
Don't set the read-only flags of the documents. The GuiCompare is modal anyway, so...
[features.git] / src / frontends / qt4 / GuiCompare.cpp
index 3fd504b90358927b7c3291d627de9806ae2d6b9b..db56ab24a8ccfd03d15bf6dca14bd2d75bd62328 100644 (file)
@@ -198,11 +198,7 @@ void GuiCompare::error()
 void GuiCompare::finished(bool aborted)
 {
        enableControls(true);
-       if (old_buffer_)
-               old_buffer_->setReadonly(false);
-       if (new_buffer_)
-               new_buffer_->setReadonly(false);
-       
+
        if (compare_) {
                delete compare_;
                compare_ = 0;
@@ -293,11 +289,6 @@ int GuiCompare::run()
        dest_buffer_->changed();
        dest_buffer_->markDirty();
 
-       // the comparison is done in a separate thread, so don't let
-       // the user change the buffers
-       old_buffer_->setReadonly(true);
-       new_buffer_->setReadonly(true);
-
        // get the options from the dialog
        CompareOptions options;
        options.settings_from_new = newSettingsRB->isChecked();