fixed ReloadConfig(); fixed --log

This commit is contained in:
hypnosis-i2p 2017-08-27 20:52:55 +08:00
parent 63e175d389
commit fc2ae6f887
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -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; }