Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Kalzium
Commits
821ae69b
Commit
821ae69b
authored
Oct 29, 2022
by
Friedrich W. H. Kossebau
Browse files
Show "Avogadro plugins could not be located" centered on main window
parent
5f0af501
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/moleculeview.cpp
View file @
821ae69b
...
...
@@ -106,7 +106,9 @@ MoleculeDialog::MoleculeDialog(QWidget *parent)
int
nTools
=
ui
.
glWidget
->
tools
().
size
();
if
(
!
nTools
)
{
QString
error
=
i18n
(
"No tools loaded - it is likely that the Avogadro plugins could not be located."
);
KMessageBox
::
error
(
this
,
error
,
i18n
(
"Kalzium"
));
// use parent as parent for the messagebix, as this dialog is not shown yet
// and thus not known to the window system to position to dialog relative to it
KMessageBox
::
error
(
parent
,
error
,
i18n
(
"Kalzium"
));
}
// objectName is also used in Avogadro2 for identifying tools
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment