Branch: master

62b21ffc 2014-03-14 05:51:46 Michele Calgaro
Fixed error messages that appeared when KHexEdit was started from CLI.
This resolves bug 1810.
M khexedit/hextoolwidget.cc
diff --git a/khexedit/hextoolwidget.cc b/khexedit/hextoolwidget.cc
index fd5aeb1..ef66db2 100644
--- a/khexedit/hextoolwidget.cc
+++ b/khexedit/hextoolwidget.cc
@@ -57,7 +57,7 @@
     i18n("Binary:"), i18n("Text:")
   };
 
-  TQGridLayout *ValuesBox = new TQGridLayout( this, 4, 6, 0, KDialog::spacingHint() );
+  TQGridLayout *ValuesBox = new TQGridLayout( NULL, 4, 6, 0, KDialog::spacingHint() );
   ValuesBox->setColStretch( 2, 10 );
   ValuesBox->setColStretch( 5, 10 );
 
@@ -91,7 +91,7 @@
     mUtilBox->addWidget( mText3[i], i, 2 );
   }
 
-  TQBoxLayout * SettingsBox = new TQHBoxLayout( this, 0, KDialog::spacingHint() );
+  TQBoxLayout * SettingsBox = new TQHBoxLayout( NULL, 0, KDialog::spacingHint() );
 
   text = i18n("Show little endian decoding");
   mCheckIntelFormat = new TQCheckBox( text, this );