when opening a file, next time we open some file the previous location will be used

This commit is contained in:
Baruch Zukerman 2006-11-22 14:32:32 +00:00
parent ca95218f00
commit 25b24b2960
1 changed files with 4 additions and 2 deletions

View File

@ -514,13 +514,14 @@ public slots:
void open_dxf_file()
{
QString s = QFileDialog::getOpenFileName("./",
QString s = QFileDialog::getOpenFileName(file_name,
QString::null,
this,
"open file dialog",
"Choose a file" );
if(s==QString::null)
return;
file_name=s;
std::ifstream in_file(s);
if(!in_file.is_open())
@ -612,13 +613,14 @@ public slots:
void open_linear_polygon_file()
{
QString s = QFileDialog::getOpenFileName("./",
QString s = QFileDialog::getOpenFileName(file_name,
QString::null,
this,
"open file dialog",
"Choose a file" );
if(s==QString::null)
return;
file_name=s;
std::ifstream in_file(s);
if(!in_file.is_open())