修复 Bug
This commit is contained in:
parent
655866ebb3
commit
2668a9df85
|
@ -291,6 +291,7 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
||||||
MainWindow::on_setting_general, keyGeneral);
|
MainWindow::on_setting_general, keyGeneral);
|
||||||
AddToolSubMenuShortcutAction("settingplugin", tr("Plugin"),
|
AddToolSubMenuShortcutAction("settingplugin", tr("Plugin"),
|
||||||
MainWindow::on_setting_plugin, keyplugin);
|
MainWindow::on_setting_plugin, keyplugin);
|
||||||
|
settingplg = a;
|
||||||
AddToolSubMenuAction("layout", tr("RestoreLayout"),
|
AddToolSubMenuAction("layout", tr("RestoreLayout"),
|
||||||
MainWindow::on_restoreLayout);
|
MainWindow::on_restoreLayout);
|
||||||
menu->addMenu(tm);
|
menu->addMenu(tm);
|
||||||
|
@ -813,6 +814,7 @@ MainWindow::MainWindow(DMainWindow *parent) {
|
||||||
} else {
|
} else {
|
||||||
plgmenu->setEnabled(false);
|
plgmenu->setEnabled(false);
|
||||||
logger->logMessage(ERRLOG(tr("UnLoadPluginSetting")));
|
logger->logMessage(ERRLOG(tr("UnLoadPluginSetting")));
|
||||||
|
settingplg->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_settings->saveWindowState(this, true);
|
m_settings->saveWindowState(this, true);
|
||||||
|
@ -2078,6 +2080,8 @@ void MainWindow::on_metadatacls() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_setting_plugin() {
|
void MainWindow::on_setting_plugin() {
|
||||||
|
if (!_enableplugin)
|
||||||
|
return;
|
||||||
PluginWindow pw(this);
|
PluginWindow pw(this);
|
||||||
pw.setPluginSystem(plgsys);
|
pw.setPluginSystem(plgsys);
|
||||||
pw.exec();
|
pw.exec();
|
||||||
|
|
|
@ -106,6 +106,8 @@ private:
|
||||||
DMenu *hexeditorMenu;
|
DMenu *hexeditorMenu;
|
||||||
DMenu *findresultMenu;
|
DMenu *findresultMenu;
|
||||||
|
|
||||||
|
QAction *settingplg;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QHexView *hexeditor;
|
QHexView *hexeditor;
|
||||||
QFile file;
|
QFile file;
|
||||||
|
|
Loading…
Reference in New Issue