ui: Filepicker fixes
* don't reset filepath used to open file picker dialog for SaveFileDialog * don't reset filepath used to open filepicker for OpenProject dialog * fixed non-native file picker starts in wrong directory if provided with filename to open (instead of directory) * fixed non-native dialog displays machines root directory if empty path is provided
This commit is contained in:
@@ -454,7 +454,7 @@ void QtGraphicsView::stopTimer()
|
||||
void QtGraphicsView::exportGraph()
|
||||
{
|
||||
QString fileName = QtFileDialog::showSaveFileDialog(
|
||||
nullptr, "Save image", QDir::homePath(), "PNG (*.png);;JPEG (*.JPEG);;BMP Files (*.bmp)");
|
||||
nullptr, "Save image", FilePath(), "PNG (*.png);;JPEG (*.JPEG);;BMP Files (*.bmp)");
|
||||
|
||||
if (!fileName.isNull())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user