Op 6-10-2011 15:47, tomm...@lyx.org schreef:
Author: tommaso
Date: Thu Oct  6 15:47:42 2011
New Revision: 39805
URL: http://www.lyx.org/trac/changeset/39805

Log:
Added Export As... dialog, exploiting the new destination path that can
be specified when exporting.
This fixes #3402.

Modified: lyx-devel/trunk/src/frontends/qt4/FileDialog.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/FileDialog.cpp    Thu Oct  6 15:34:32 
2011        (r39804)
+++ lyx-devel/trunk/src/frontends/qt4/FileDialog.cpp    Thu Oct  6 15:47:42 
2011        (r39805)
@@ -81,7 +81,8 @@


  FileDialog::Result FileDialog::save(QString const&  path,
-       QStringList const&  filters, QString const&  suggested)
+       QStringList const&  filters, QString const&  suggested,
+       QString&  selectedFilter)
  {
        LYXERR(Debug::GUI, "Select with path \""<<  path
                        <<  "\", mask \""<<  filters.join(";;")

Why not making selectedFilter just a "QString *"  ...


+FileDialog::Result FileDialog::save(QString const&  path,
+       QStringList const&  filters, QString const&  suggested)
+{
+       QString selectedFilter = 0;
+       return save(path, filters, suggested, selectedFilter);
+}

... and this would be almost correct.

Op 7-10-2011 0:20, tomm...@lyx.org schreef:
Author: tommaso
Date: Fri Oct  7 00:20:50 2011
New Revision: 39810
URL: http://www.lyx.org/trac/changeset/39810

Log:
Fixing compilation on some Qt version (?!?).


And r38910 wouldn't be necessary too. It's anyway a bit strange to have a pointer to/address of a non-const reference.

This was probably caused by a different compiler rather than the Qt version.

Vincent

Reply via email to