X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiCompare.cpp;h=4ea7f3578440668e2a052a964f5b50d553db86f9;hb=b7f6b979d0f889f08e735f35378bb20ba3788b4b;hp=49c6c130f3f4a911776b43f0107f63a5629bf8e1;hpb=22434db5028ccaf91ceea0bb625860afc45b458c;p=lyx.git diff --git a/src/frontends/qt4/GuiCompare.cpp b/src/frontends/qt4/GuiCompare.cpp index 49c6c130f3..4ea7f35784 100644 --- a/src/frontends/qt4/GuiCompare.cpp +++ b/src/frontends/qt4/GuiCompare.cpp @@ -78,7 +78,7 @@ GuiCompare::~GuiCompare() void GuiCompare::closeEvent(QCloseEvent *) { - slotCancel(); + slotCancel(); } @@ -154,19 +154,19 @@ QString GuiCompare::browse(QString const & in_name) const QString const title = qt_("Select document"); QStringList const & filters = fileFilters(qt_("LyX Documents (*.lyx)")); - + QString filename; if (lyxview().documentBufferView()) { QString path = bufferFilePath(); - filename = browseRelFile(in_name, path, title, filters, false, + filename = browseRelToParent(in_name, path, title, filters, false, qt_("Documents|#o#O"), toqstr(lyxrc.document_path)); } else { QString path = toqstr(lyxrc.document_path); - QString rel_filename = browseRelFile(in_name, path, title, filters, false, + QString rel_filename = browseRelToParent(in_name, path, title, filters, false, qt_("Documents|#o#O"), toqstr(lyxrc.document_path)); filename = makeAbsPath(rel_filename, path); } - return filename; + return filename; } @@ -207,7 +207,7 @@ void GuiCompare::finished(bool aborted) delete compare_; compare_ = 0; } - + if (aborted) { if (dest_buffer_) { dest_buffer_->markClean(); @@ -332,7 +332,7 @@ bool GuiCompare::initialiseParams(std::string const &par) progressBar->setValue(0); progressBar->setEnabled(false); - progressBar->setMaximum(100); + progressBar->setMaximum(1); return true; }