| 857 | } |
| 858 | |
| 859 | void VirtualFileDialog::on_buttonBox_accepted() |
| 860 | { |
| 861 | if(!m_FileProxy->showFiles) |
| 862 | { |
| 863 | // if browsing for a directory, accept current dir as path |
| 864 | m_ChosenPath = m_Model->data(currentDir(), RemoteFileModel::FilePathRole).toString(); |
| 865 | QDialog::accept(); |
| 866 | return; |
| 867 | } |
| 868 | |
| 869 | // simulate enter being pressed |
| 870 | QKeyEvent fakeEvent(QEvent::KeyPress, Qt::Key_Return, 0); |
| 871 | on_filename_keyPress(&fakeEvent); |
| 872 | } |
| 873 | |
| 874 | void VirtualFileDialog::on_back_clicked() |
| 875 | { |