From: nds Date: Wed, 21 Nov 2007 16:11:52 +0000 (+0000) Subject: Save string from dialog X-Git-Tag: TG_Saint_Valentine-Day~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15be616d5a758f1ea05e5947ddf93dd069fe3ca9;p=modules%2Fgui.git Save string from dialog --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index 8dc7fd64c..6bebf3c9c 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -272,6 +272,13 @@ void SUIT_FileDlg::accept() if ( acceptData() ) { + // NDS: needs to fill string mySelected file + QString fn; + QStringList lst = QFileDialog::selectedFiles(); + if ( !lst.isEmpty() ) + fn = lst.first(); + mySelectedFile = fn; + // end NDS myLastVisitedPath = directory().path(); QFileDialog::accept(); // myAccepted = true;