From: tkawata Date: Wed, 19 Dec 2012 14:06:44 +0000 (+0900) Subject: [denncoCreator] Fixed a minor bug. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=065e73b3fb3bc7e5952dd30ff5c5b6f87a9c8d61;p=dennco%2FdenncoCreator.git [denncoCreator] Fixed a minor bug. --- diff --git a/Source/codeeditor/dccellscriptseditorpagewidget.cpp b/Source/codeeditor/dccellscriptseditorpagewidget.cpp index 7c03031..73d91d2 100644 --- a/Source/codeeditor/dccellscriptseditorpagewidget.cpp +++ b/Source/codeeditor/dccellscriptseditorpagewidget.cpp @@ -502,6 +502,7 @@ void DCCellScriptsEditorPageWidget::focusCellCodeScript() void DCCellScriptsEditorPageWidget::reloadCustomScript() { d_customScriptEditor->setPlainText(d_customScriptFolder.getCurrentScript(true)); + d_customScriptEditor->setReadOnly(d_customScriptExternalMode); updateModifiedStatus(); } @@ -510,7 +511,7 @@ void DCCellScriptsEditorPageWidget::reloadCellCodeScript() if (d_cell->getIsCellCodeAssgined()) { d_cellCodeScriptEditor->setPlainText(d_cellCodeScriptFolder.getCurrentScript(true)); - d_cellCodeScriptEditor->setReadOnly(false); + d_cellCodeScriptEditor->setReadOnly(d_cellCodeScriptExternalMode); d_cellCodeScriptEditor->document()->setModified(false); d_cellCodeScriptEditExternalButton->setEnabled(true); d_splitter->widget(1)->show();