mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
updated qt to build and to reflect some core changes like log dest
This commit is contained in:
parent
4e8858a764
commit
611c1a7502
3 changed files with 6 additions and 13 deletions
|
@ -155,8 +155,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
|
||||
uiSettings->logDestinationComboBox->clear();
|
||||
uiSettings->logDestinationComboBox->insertItems(0, QStringList()
|
||||
<< QApplication::translate("MainWindow", "stdout", 0)
|
||||
<< QApplication::translate("MainWindow", "file", 0)
|
||||
<< QApplication::translate("MainWindow", "syslog", 0)
|
||||
<< QApplication::translate("MainWindow", "stdout", 0)
|
||||
<< QApplication::translate("MainWindow", "file", 0)
|
||||
);
|
||||
initLogDestinationCombobox( OPTION("","log",[]{return "";}), uiSettings->logDestinationComboBox);
|
||||
|
||||
|
@ -302,9 +303,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
}
|
||||
|
||||
void MainWindow::logDestinationComboBoxValueChanged(const QString & text) {
|
||||
bool stdout = text==QString("stdout");
|
||||
uiSettings->logFileLineEdit->setEnabled(!stdout);
|
||||
uiSettings->logFileBrowsePushButton->setEnabled(!stdout);
|
||||
bool fileEnabled = text==QString("file");
|
||||
uiSettings->logFileLineEdit->setEnabled(fileEnabled);
|
||||
uiSettings->logFileBrowsePushButton->setEnabled(fileEnabled);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue