mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user