mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
fixed tunnels invalid ui data handling
This commit is contained in:
parent
21de4709ea
commit
1947be4957
3 changed files with 10 additions and 1 deletions
|
@ -756,6 +756,14 @@ void MainWindow::deleteTunnelForms() {
|
|||
tunnelPanes.clear();
|
||||
}
|
||||
|
||||
bool MainWindow::applyTunnelsUiToConfigs() {
|
||||
for(std::list<TunnelPane*>::iterator it = tunnelPanes.begin(); it != tunnelPanes.end(); ++it) {
|
||||
TunnelPane* tp = *it;
|
||||
if(!tp->applyDataFromUIToTunnelConfig())return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void MainWindow::reloadTunnelsConfigAndUI(std::string tunnelNameToFocus) {
|
||||
deleteTunnelForms();
|
||||
for (std::map<std::string,TunnelConfig*>::iterator it=tunnelConfigs.begin(); it!=tunnelConfigs.end(); ++it) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue