Skip to content

Swedish localization#5

Merged
annejan merged 2 commits into
IJHack:masterfrom
iamtew:master
Aug 15, 2014
Merged

Swedish localization#5
annejan merged 2 commits into
IJHack:masterfrom
iamtew:master

Conversation

@iamtew

@iamtew iamtew commented Aug 15, 2014

Copy link
Copy Markdown
Member

Updated Swedish labels and tested in Qt Linguist.

annejan added a commit that referenced this pull request Aug 15, 2014
@annejan annejan merged commit cc40488 into IJHack:master Aug 15, 2014
annejan added a commit that referenced this pull request Jun 1, 2016
annejan pushed a commit that referenced this pull request May 3, 2018
annejan added a commit that referenced this pull request Apr 26, 2026
Reproduced via SIGSEGV on a fresh-config launch:

  #0  QLineEdit::selectAll()
  #1  MainWindow::focusInput()
  #2  ... (timer event)
  #3  QEventLoop::exec()       ← nested loop from QDialog::exec()
  #4  ConfigDialog::wizard()
  #5  MainWindow::config()
  #6  QtPass::init()
  #7  MainWindow::MainWindow()

`MainWindow`'s constructor was scheduling
`QTimer::singleShot(10, this, SLOT(focusInput()))` *before* calling
`m_qtPass->init()`. On a fresh install (no `.gpg-id`/invalid config),
`init()` calls `MainWindow::config()` which runs the first-run wizard
via `QDialog::exec()` — i.e. a nested event loop. The 10 ms timer
fires inside that loop while the main window has not yet been shown,
`focusInput()` runs, and `QLineEdit::selectAll()` crashes inside Qt
because the line-edit's owning top-level isn't visible/realized yet.

Move the timer scheduling to *after* `init()` returns successfully,
and bail out of the constructor early when init fails. The success
path is unchanged for normal launches; the wizard path no longer
queues the focus pulse during the nested loop, and the failure path
no longer queues it before destruction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants