[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38305] file dialog causes crash
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #38305] file dialog causes crash |
Date: |
Fri, 24 May 2013 22:19:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 |
Follow-up Comment #7, bug #38305 (project octave):
OK Thorsten, I was going to suggest you try that since that seems to be the
issue here:
http://qt-project.org/forums/viewthread/7159
The error suggests to me something where the file dialog (which translates
somehow to KDE's file dialog) is attempting to use some utility which has
already been initialized in some way.
If I understand correctly, the action you are taking and the point of the
error message coincides with this hunk of code
void
file_editor::request_open_file (void)
{
// Open file isn't a file_editor_tab function since the file
// editor tab has yet to be created and there is no object to
// pass a signal to. Hence, functionality is here.
// Create a NonModal message.
QFileDialog *fileDialog = new QFileDialog (this);
fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)"));
fileDialog->setAcceptMode (QFileDialog::AcceptOpen);
fileDialog->setViewMode (QFileDialog::Detail);
fileDialog->setDirectory (ced);
connect (fileDialog, SIGNAL (fileSelected (const QString&)),
this, SLOT (request_open_file (const QString&)));
fileDialog->setWindowModality (Qt::NonModal);
fileDialog->setAttribute (Qt::WA_DeleteOnClose);
fileDialog->show ();
}
If that sound right to you, could you please remove the translator from within
the argument of the second line of code? I.e., change
fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)"));
to
fileDialog->setNameFilter ("Octave Files (*.m);;All Files (*)");
That is the only thing I see for which there might be a conflict of two KDE
utilities around the behavior you describe.
Does that rid the error message? That "tr" is a shorthand macro for
something, but I always wondered what exactly.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38305>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Torsten, 2013/05/24
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Torsten, 2013/05/24
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/24
- [Octave-bug-tracker] [bug #38305] file dialog causes crash,
Dan Sebald <=
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Dan Sebald, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Torsten, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Torsten, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Dan Sebald, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Thorsten Liebig, 2013/05/25
- [Octave-bug-tracker] [bug #38305] file dialog causes crash, Dan Sebald, 2013/05/26