Browse Source

fixed ReloadConfig(); fixed --log

pull/936/head
hypnosis-i2p 7 years ago
parent
commit
fc2ae6f887
  1. 2
      qt/i2pd_qt/mainwindow.cpp
  2. 4
      qt/i2pd_qt/mainwindow.h

2
qt/i2pd_qt/mainwindow.cpp

@ -766,7 +766,7 @@ void MainWindow::SaveTunnelsConfig() { @@ -766,7 +766,7 @@ void MainWindow::SaveTunnelsConfig() {
outfile << out.str().c_str();
outfile.close();
i2p::client::ClientContext::ReloadConfig();
i2p::client::context.ReloadConfig();
}

4
qt/i2pd_qt/mainwindow.h

@ -218,7 +218,9 @@ public: @@ -218,7 +218,9 @@ public:
comboBox->setCurrentText(QString(ld));
}
virtual void saveToStringStream(std::stringstream& out){
optionValue=comboBox->currentText().toStdString();
std::string logDest = comboBox->currentText().toStdString();
if(logDest==std::string("stdout"))logDest="";
optionValue=logDest;
MainWindowItem::saveToStringStream(out);
}
virtual bool isValid() { return true; }

Loading…
Cancel
Save