mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
qt: fixes #1593
This commit is contained in:
parent
242e3d007c
commit
d7342586a6
@ -13,9 +13,11 @@ CONFIG(debug, debug|release) {
|
||||
# do not redirect logging to std::ostream and to Log pane
|
||||
DEFINES += DEBUG_WITH_DEFAULT_LOGGING
|
||||
|
||||
DEFINES += I2PD_QT_DEBUG
|
||||
I2PDMAKE += DEBUG=yes
|
||||
} else {
|
||||
message(Release build)
|
||||
DEFINES += I2PD_QT_RELEASE
|
||||
I2PDMAKE += DEBUG=no
|
||||
}
|
||||
|
||||
|
@ -188,6 +188,9 @@ MainWindow::MainWindow(std::shared_ptr<std::iostream> logStream_, QWidget *paren
|
||||
<< QApplication::translate("MainWindow", "file", 0)
|
||||
);
|
||||
initLogDestinationCombobox( OPTION("","log",[]{return "";}), uiSettings->logDestinationComboBox);
|
||||
#ifdef I2PD_QT_RELEASE
|
||||
uiSettings->logDestinationComboBox->setEnabled(false); // #1593
|
||||
#endif
|
||||
|
||||
logFileNameOption=initFileChooser( OPTION("","logfile",[]{return "";}), uiSettings->logFileLineEdit, uiSettings->logFileBrowsePushButton, false);
|
||||
initLogLevelCombobox(OPTION("","loglevel",[]{return "";}), uiSettings->logLevelComboBox);
|
||||
@ -325,7 +328,15 @@ MainWindow::MainWindow(std::shared_ptr<std::iostream> logStream_, QWidget *paren
|
||||
# undef OPTION
|
||||
|
||||
//widgetlocks.add(new widgetlock(widget,lockbtn));
|
||||
|
||||
|
||||
// #1593
|
||||
#ifdef I2PD_QT_RELEASE
|
||||
uiSettings->logDestComboEditPushButton->setEnabled(false);
|
||||
#else
|
||||
widgetlocks.add(new widgetlock(uiSettings->logDestinationComboBox,uiSettings->logDestComboEditPushButton));
|
||||
#endif
|
||||
|
||||
widgetlocks.add(new widgetlock(uiSettings->logLevelComboBox,uiSettings->logLevelComboEditPushButton));
|
||||
widgetlocks.add(new widgetlock(uiSettings->comboBox_httpPorxySignatureType,uiSettings->httpProxySignTypeComboEditPushButton));
|
||||
widgetlocks.add(new widgetlock(uiSettings->comboBox_socksProxySignatureType,uiSettings->socksProxySignTypeComboEditPushButton));
|
||||
|
Loading…
x
Reference in New Issue
Block a user