Les dialogues pour ouvrir et enregistrer des fichiers gerent mieux le dossier a afficher par defaut

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@190 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-10-21 12:53:57 +00:00
parent 22969aabd7
commit 17e637b7e1
11 changed files with 27 additions and 25 deletions

View File

@@ -251,9 +251,8 @@ void ExportDialog::slot_chooseAFile() {
QDir::homePath(),
tr("Images (*.png *.bmp *.jpg *.svg)")
);
if (user_file != "") {
diagram_path = user_file;
filename -> setText(diagram_path);
if (!user_file.isEmpty()) {
filename -> setText(user_file);
}
}
@@ -347,9 +346,10 @@ void ExportDialog::generateSvg(QFile &file) {
dialogue.
*/
void ExportDialog::slot_check() {
QString diagram_path = filename -> text();
// verifie que le fichier a ete specifie
if (diagram_path == "") {
if (diagram_path.isEmpty()) {
QMessageBox::information(
this,
tr("Fichier non sp\351cifi\351"),