forked from qt-creator/qt-creator
Shortcut Ctrk-L (Locator Goto Line) broken in most translations.
Change the translateable string not to contain a blank. Task-number: QTCREATORBUG-299 Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
@@ -362,9 +362,11 @@ void TextEditorActionHandler::gotoAction()
|
||||
{
|
||||
Locator::LocatorManager *locatorManager = Locator::LocatorManager::instance();
|
||||
QTC_ASSERT(locatorManager, return);
|
||||
const QString shortcut = TextEditorPlugin::instance()->lineNumberFilter()->shortcutString();
|
||||
const QString text = tr(" <line number>");
|
||||
locatorManager->show(shortcut + text, 2, text.length()-1);
|
||||
QString locatorString = TextEditorPlugin::instance()->lineNumberFilter()->shortcutString();
|
||||
locatorString += QLatin1Char(' ');
|
||||
const int selectionStart = locatorString.size();
|
||||
locatorString += tr("<line number>");
|
||||
locatorManager->show(locatorString, selectionStart, locatorString.size() - selectionStart);
|
||||
}
|
||||
|
||||
void TextEditorActionHandler::printAction()
|
||||
|
||||
Reference in New Issue
Block a user