mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
Remove File > Open for Placefiles
This commit is contained in:
parent
4f16d92ba3
commit
47c1bce993
5 changed files with 0 additions and 90 deletions
|
|
@ -401,28 +401,6 @@ void MainWindow::on_actionOpenNexrad_triggered()
|
|||
dialog->open();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenPlacefile_triggered()
|
||||
{
|
||||
static const std::string placefileFilter = "Placefiles (*)";
|
||||
|
||||
QFileDialog* dialog = new QFileDialog(this);
|
||||
|
||||
dialog->setFileMode(QFileDialog::ExistingFile);
|
||||
dialog->setNameFilter(tr(placefileFilter.c_str()));
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
connect(dialog,
|
||||
&QFileDialog::fileSelected,
|
||||
this,
|
||||
[this](const QString& file)
|
||||
{
|
||||
logger_->info("Selected: {}", file.toStdString());
|
||||
p->placefileManager_->LoadFile(file.toStdString());
|
||||
});
|
||||
|
||||
dialog->open();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenTextEvent_triggered()
|
||||
{
|
||||
static const std::string textFilter = "Text Event Products (*.txt)";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue