Only enable Edit->Packet Comment... if we can save the file without

losing the packet comments, just as we now do in the GTK+ version.

svn path=/trunk/; revision=48699
This commit is contained in:
Guy Harris 2013-04-02 16:05:25 +00:00
parent 0a26433321
commit 3fd4767110
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ void MainWindow::setMenusForSelectedPacket()
// set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/EditMenu/EditPacket",
// frame_selected);
//#endif /* WANT_PACKET_EDITOR */
main_ui_->actionEditPacketComment->setEnabled(frame_selected);
main_ui_->actionEditPacketComment->setEnabled(frame_selected && wtap_dump_can_write(cap_file_->linktypes, WTAP_COMMENT_PER_PACKET));
main_ui_->actionEditIgnorePacket->setEnabled(frame_selected);
main_ui_->actionEditIgnoreAllDisplayed->setEnabled(have_filtered);