diff --git a/src/preferences/shortcuts/EditWindow.cpp b/src/preferences/shortcuts/EditWindow.cpp index e2e08a65b3..04c8f7a922 100644 --- a/src/preferences/shortcuts/EditWindow.cpp +++ b/src/preferences/shortcuts/EditWindow.cpp @@ -68,7 +68,9 @@ EditWindow::Go() CenterOnScreen(); acquire_sem(fSem); + BString result = fTextControl->Text(); if (Lock()) Quit(); - return fTextControl->Text(); + + return result; }