IIRC the challenge here is that this stops us from being able to manually open git repositories. We simply need to stop abusing the regular file open dialog and instead provide a separate dialog for opening git repositories.
For now I'll take your patch as it creates the correct behavior for the "typical" user who just cares about XML files. /D On Fri, Aug 07, 2015 at 07:12:28PM +0300, Miika Turkia wrote: > Fixes #913 > > Signed-off-by: Miika Turkia <[email protected]> > --- > qt-ui/mainwindow.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp > index 4f82415..db1d8c8 100644 > --- a/qt-ui/mainwindow.cpp > +++ b/qt-ui/mainwindow.cpp > @@ -307,7 +307,7 @@ void MainWindow::on_actionOpen_triggered() > dialog.setViewMode(QFileDialog::Detail); > dialog.setLabelText(QFileDialog::Accept, tr("Open")); > dialog.setLabelText(QFileDialog::Reject, tr("Cancel")); > - dialog.setAcceptMode(QFileDialog::AcceptSave); > + dialog.setAcceptMode(QFileDialog::AcceptOpen); > QStringList filenames; > if (dialog.exec()) > filenames = dialog.selectedFiles(); > -- > 2.1.4 > > _______________________________________________ > subsurface mailing list > [email protected] > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
