I have a program I wrote in Windows with this piece of code that works on Windows, but when compiled in linux, the saved file doesn’t have the .l2p extension.
void MainWindow::on_saveButton_clicked()
{
QString fileName = QFileDialog::getSaveFileName(this,
tr("Salvesta Projekt"), "",
tr("Latid Pindalaks (*.l2p)"));
if (fileName.isEmpty())
return;
...
What should I do?
If the file name doesn’t have the extension you need, just add it: