mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing internal change of webUI directory
This commit is contained in:
parent
e22c5c9702
commit
099113805e
@ -65,6 +65,9 @@ void WebuiPage::selectWebInterfaceDirectory()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
whileBlocking(ui.webInterfaceFiles_LE)->setText(dirname);
|
whileBlocking(ui.webInterfaceFiles_LE)->setText(dirname);
|
||||||
|
|
||||||
|
QString S;
|
||||||
|
updateParams(S);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebuiPage::updateParams(QString &errmsg)
|
bool WebuiPage::updateParams(QString &errmsg)
|
||||||
@ -82,6 +85,8 @@ bool WebuiPage::updateParams(QString &errmsg)
|
|||||||
// store config
|
// store config
|
||||||
Settings->setWebinterfaceEnabled(ui.enableWebUI_CB->isChecked());
|
Settings->setWebinterfaceEnabled(ui.enableWebUI_CB->isChecked());
|
||||||
Settings->setWebinterfaceFilesDirectory(ui.webInterfaceFiles_LE->text());
|
Settings->setWebinterfaceFilesDirectory(ui.webInterfaceFiles_LE->text());
|
||||||
|
|
||||||
|
rsWebUi->setHtmlFilesDirectory(ui.webInterfaceFiles_LE->text().toStdString());
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
@ -196,6 +201,9 @@ void WebuiPage::onApplyClicked()
|
|||||||
{
|
{
|
||||||
rsWebUi->setUserPassword(ui.password_LE->text().toStdString());
|
rsWebUi->setUserPassword(ui.password_LE->text().toStdString());
|
||||||
|
|
||||||
|
QString errmsg;
|
||||||
|
updateParams(errmsg);
|
||||||
|
|
||||||
if(!restart())
|
if(!restart())
|
||||||
{
|
{
|
||||||
QMessageBox::warning(0, tr("failed to start Webinterface"), "Failed to start the webinterface.");
|
QMessageBox::warning(0, tr("failed to start Webinterface"), "Failed to start the webinterface.");
|
||||||
|
Loading…
Reference in New Issue
Block a user