OSDN Git Service

[denncoCreator] Fixed a minor bug.
authortkawata <tkawata@users.sourceforge.jp>
Wed, 19 Dec 2012 14:06:44 +0000 (23:06 +0900)
committertkawata <tkawata@users.sourceforge.jp>
Wed, 19 Dec 2012 14:06:44 +0000 (23:06 +0900)
Source/codeeditor/dccellscriptseditorpagewidget.cpp

index 7c03031..73d91d2 100644 (file)
@@ -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();