Improved: Tabs can be closed by middle click in the Configuration Editor. Ctrl+A can be used to select all rows.
Fixed: When a line was edited manually in the Configuration Editor, the file was not saved automatically when "Instant mode" was enabled.
This commit is contained in:
1 parent
87d9084d61
commit
5a795a2d26
15 files changed
+299
-83
No files matched your search
@@ -519,7 +519,21 @@ void MainWindow::linesChanged()
|
||||
bool MainWindow::on_tabWidget_tabCloseRequested(int index)
|
||||
{
|
||||
if (askForClose(index))
|
||||
{
|
||||
QScrollArea* scrollArea = qobject_cast<QScrollArea*>(ui->tabWidget->widget(index));
|
||||
if (scrollArea != NULL)
|
||||
{
|
||||
FilterTable* filterTable = qobject_cast<FilterTable*>(scrollArea->widget());
|
||||
QString path = filterTable->getConfigPath();
|
||||
recentFiles.removeAll(path);
|
||||
recentFiles.prepend(path);
|
||||
if (recentFiles.size() > 10)
|
||||
recentFiles.removeLast();
|
||||
updateRecentFiles();
|
||||
}
|
||||
|
||||
ui->tabWidget->removeTab(index);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -665,6 +679,16 @@ void MainWindow::on_actionDelete_triggered()
|
||||
filterTable->deleteSelectedLines();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSelectAll_triggered()
|
||||
{
|
||||
QScrollArea* scrollArea = qobject_cast<QScrollArea*>(ui->tabWidget->currentWidget());
|
||||
if (scrollArea == NULL)
|
||||
return;
|
||||
|
||||
FilterTable* filterTable = qobject_cast<FilterTable*>(scrollArea->widget());
|
||||
filterTable->selectAll();
|
||||
}
|
||||
|
||||
void MainWindow::instantModeEnabled(bool enabled)
|
||||
{
|
||||
if (enabled)
|
||||
|
||||
Reference in new issue
Block a user