diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-02 18:47:05 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-02 18:47:05 +0000 |
commit | 409b405d7ce213cb1f27a85266a83c4196fae7df (patch) | |
tree | ff5849ac3e9471040769513603b30cb19236761b /ui/qt/file_set_dialog.cpp | |
parent | 498db62022d6877ddbda86ae00718983f2c7cf3e (diff) | |
download | wireshark-409b405d7ce213cb1f27a85266a83c4196fae7df.tar.gz |
Move the main window slots to main_window_slots.cpp.
svn path=/trunk/; revision=45259
Diffstat (limited to 'ui/qt/file_set_dialog.cpp')
-rw-r--r-- | ui/qt/file_set_dialog.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/ui/qt/file_set_dialog.cpp b/ui/qt/file_set_dialog.cpp index d02d84d7ce..a614ec2623 100644 --- a/ui/qt/file_set_dialog.cpp +++ b/ui/qt/file_set_dialog.cpp @@ -80,30 +80,13 @@ FileSetDialog::~FileSetDialog() void FileSetDialog::fileOpened(const capture_file *cf) { if (!cf) return; fs_ui_->fileSetTree->clear(); -// fileset_delete(); fileset_add_dir(cf->filename, this); -// if(fs_w) { -// window_present(fs_w); -// } - } /* the capture file was closed */ void FileSetDialog::fileClosed() { fileset_delete(); fs_ui_->fileSetTree->clear(); - -// if(fs_w) { -// /* reinit the table, title and alike */ -// g_object_ref(G_OBJECT(fs_tb_vb)); -// gtk_widget_destroy(fs_tb); -// fileset_delete(); -// fileset_init_table(fs_tb_vb); -// window_present(fs_w); -// } else { -// fileset_delete(); -// } - } #include <QDebug> @@ -162,7 +145,7 @@ void FileSetDialog::addFile(fileset_entry *entry) { close_button_->setEnabled(true); fs_ui_->fileSetTree->addTopLevelItem(entry_item); - for (int i = 0; i < 4; i++) + for (int i = 0; i < fs_ui_->fileSetTree->columnCount(); i++) fs_ui_->fileSetTree->resizeColumnToContents(i); fs_ui_->fileSetTree->setFocus(); } |