Hi

I'm using QT5 from Ubuntu 16.04 and have troubles when i use the keyboard.
Qt Version 5.5.1.

When i select all Buttons or Files with the Mouse it works fine, but when i to the work with the Keyboard and press Enter i got a SIGSEGV
by using getSaveFileName. getExistingDirectory works fine.


The inferior stopped because it received a signal from the operating system.
Signal name : SIGSEGV
Signal meaning : Segmentation fault

Qt Code:
  1. void ExportDialog::onExportButton_clicked()
  2. {
  3. QSettings settings(QSettings::IniFormat, QSettings::UserScope, "XX", "XX");
  4. QString lastUsedDirectory = settings.value("lastUsedDirectory", QDir::currentPath()).toString();
  5.  
  6. if (m_saveTodir) {
  7. m_filename = QFileDialog::getExistingDirectory(this, tr("Save to ..."),lastUsedDirectory);
  8. } else {
  9. m_filename = QFileDialog::getSaveFileName(this, tr("save"), lastUsedDirectory, "CSV (*.csv)");
  10. }
  11.  
  12. if (m_filename.isNull())
  13. return;
  14.  
  15. settings.setValue("lastUsedDirectory", m_filename);
  16.  
  17. QDialog::accept();
  18.  
  19. }
To copy to clipboard, switch view to plain text mode 

Can you tell me what i'm doing wrong?