New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid crash on gui when rendering from command line and no write access #3322
Conversation
The other option is to fix it in AudioFileDevice.cpp |
Pushed method two on a separate commit for comparison. I vote no. 2 |
src/core/audio/AudioFileDevice.cpp
Outdated
ExportProjectDialog::tr( "Could not open file %1 " | ||
QString title, message; | ||
title = ExportProjectDialog::tr( "Could not open file" ); | ||
message = ExportProjectDialog::tr( "Could not open file %1 " | ||
"for writing.\nPlease make " | ||
"sure you have write-" | ||
"permission to the file and " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write-permission
?
-> write permission
Settled for no.2 . Done... |
src/core/audio/AudioFileDevice.cpp
Outdated
} | ||
else | ||
{ | ||
printf( "%s\n", message.toUtf8().constData() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fprintf( stderr, "%s\n",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
Thanks! Merge... |
Fixes #2902
Something like this?