]> git.lyx.org Git - lyx.git/commitdiff
compile fixes
authorAbdelrazak Younes <younes@lyx.org>
Thu, 6 Mar 2008 09:07:41 +0000 (09:07 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 6 Mar 2008 09:07:41 +0000 (09:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23506 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FileDialog.cpp

index 964820b16481fbfe37e43f7ecd2f1ce2aca6a384..8c5ae9814078901ff0c9f68bbc7c0ffe6cdd0782 100644 (file)
@@ -93,16 +93,16 @@ FileDialog::Result FileDialog::save(QString const & path,
        result.first = FileDialog::Chosen;
 
 #ifdef USE_NATIVE_FILEDIALOG
-       QString const startsWith = from_utf8(
-               makeAbsPath(to_utf8(suggested), to_utf8(path)).absFilename());
+       QString const startsWith = toqstr(
+               makeAbsPath(fromqstr(suggested), fromqstr(path)).absFilename());
        QString const name = 
                QFileDialog::getSaveFileName(qApp->focusWidget(),
-                                            toqstr(title_)
-                                            toqstr(startsWith)
+                                            title_
+                                            startsWith
                                             toqstr(filters.as_string()),
                                             0, 
                                             QFileDialog::DontConfirmOverwrite);
-       result.second = from_utf8(internal_path(fromqstr(name)));
+       result.second = toqstr(internal_path(fromqstr(name)));
 #else
        LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
 #if QT_VERSION != 0x040203
@@ -140,7 +140,7 @@ FileDialog::Result FileDialog::open(QString const & path,
                makeAbsPath(fromqstr(suggested), fromqstr(path)).absFilename());
        result.second = internalPath(
                QFileDialog::getOpenFileName(qApp->focusWidget(),
-               toqstr(title_), toqstr(startsWith), toqstr(filters.as_string()) ));
+               title_, startsWith, toqstr(filters.as_string()) ));
 #else
        LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
 
@@ -169,9 +169,9 @@ FileDialog::Result FileDialog::opendir(QString const & path,
 #ifdef USE_NATIVE_FILEDIALOG
        QString const startsWith = toqstr(
                makeAbsPath(fromqstr(suggested), fromqstr(path)).absFilename());
-       result.second = from_utf8(internal_path(fromqstr(
+       result.second = toqstr(internal_path(fromqstr(
                QFileDialog::getExistingDirectory(qApp->focusWidget(),
-               toqstr(title_),toqstr(startsWith)))));
+               title_, startsWith))));
 #else
        FileFilterList const filter(_("Directories"));