mirror of https://github.com/CGAL/cgal
when opening a file, next time we open some file the previous location will be used
This commit is contained in:
parent
ca95218f00
commit
25b24b2960
|
|
@ -514,13 +514,14 @@ public slots:
|
||||||
void open_dxf_file()
|
void open_dxf_file()
|
||||||
{
|
{
|
||||||
|
|
||||||
QString s = QFileDialog::getOpenFileName("./",
|
QString s = QFileDialog::getOpenFileName(file_name,
|
||||||
QString::null,
|
QString::null,
|
||||||
this,
|
this,
|
||||||
"open file dialog",
|
"open file dialog",
|
||||||
"Choose a file" );
|
"Choose a file" );
|
||||||
if(s==QString::null)
|
if(s==QString::null)
|
||||||
return;
|
return;
|
||||||
|
file_name=s;
|
||||||
|
|
||||||
std::ifstream in_file(s);
|
std::ifstream in_file(s);
|
||||||
if(!in_file.is_open())
|
if(!in_file.is_open())
|
||||||
|
|
@ -612,13 +613,14 @@ public slots:
|
||||||
void open_linear_polygon_file()
|
void open_linear_polygon_file()
|
||||||
{
|
{
|
||||||
|
|
||||||
QString s = QFileDialog::getOpenFileName("./",
|
QString s = QFileDialog::getOpenFileName(file_name,
|
||||||
QString::null,
|
QString::null,
|
||||||
this,
|
this,
|
||||||
"open file dialog",
|
"open file dialog",
|
||||||
"Choose a file" );
|
"Choose a file" );
|
||||||
if(s==QString::null)
|
if(s==QString::null)
|
||||||
return;
|
return;
|
||||||
|
file_name=s;
|
||||||
|
|
||||||
std::ifstream in_file(s);
|
std::ifstream in_file(s);
|
||||||
if(!in_file.is_open())
|
if(!in_file.is_open())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue