pt import: Fix two warnings from valgrind
- Remove uninitialised unused variable - Remove jump condition on uninitialised variable
This commit is contained in:
parent
a3df0523b5
commit
cbd0ba90c6
|
@ -76,8 +76,6 @@ using std::string;
|
||||||
void
|
void
|
||||||
Editor::external_pt_dialog ()
|
Editor::external_pt_dialog ()
|
||||||
{
|
{
|
||||||
std::string ptpath;
|
|
||||||
|
|
||||||
if (_session == 0) {
|
if (_session == 0) {
|
||||||
MessageDialog msg (_("You can't import a PT session until you have a session loaded."));
|
MessageDialog msg (_("You can't import a PT session until you have a session loaded."));
|
||||||
msg.run ();
|
msg.run ();
|
||||||
|
|
|
@ -46,10 +46,6 @@ PTImportSelector::PTImportSelector (PTFFormat& ptf) :
|
||||||
{
|
{
|
||||||
_ptf = &ptf;
|
_ptf = &ptf;
|
||||||
|
|
||||||
if (!_session_rate) {
|
|
||||||
Gtk::Dialog::response(RESPONSE_CANCEL);
|
|
||||||
}
|
|
||||||
|
|
||||||
set_size_request (800, 450);
|
set_size_request (800, 450);
|
||||||
ptimport_import_button.set_size_request (90, 35);
|
ptimport_import_button.set_size_request (90, 35);
|
||||||
ptimport_cancel_button.set_size_request (90, 35);
|
ptimport_cancel_button.set_size_request (90, 35);
|
||||||
|
|
Loading…
Reference in New Issue